Compartilhar via


PSSnapInException Constructors

Definition

Overloads

PSSnapInException()

Initiate an instance of PSSnapInException.

PSSnapInException(String)

Initiate an instance of PSSnapInException.

PSSnapInException(SerializationInfo, StreamingContext)
Obsolete.

Initiate a PSSnapInException instance.

PSSnapInException(String, Exception)

Initiate an instance of PSSnapInException.

PSSnapInException()

Initiate an instance of PSSnapInException.

public:
 PSSnapInException();
public:
 PSSnapInException();
 PSSnapInException();
public PSSnapInException ();
Public Sub New ()

Applies to

PSSnapInException(String)

Initiate an instance of PSSnapInException.

public:
 PSSnapInException(System::String ^ message);
public:
 PSSnapInException(Platform::String ^ message);
 PSSnapInException(std::wstring const & message);
public PSSnapInException (string message);
new System.Management.Automation.Runspaces.PSSnapInException : string -> System.Management.Automation.Runspaces.PSSnapInException
Public Sub New (message As String)

Parameters

message
String

Error message.

Applies to

PSSnapInException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initiate a PSSnapInException instance.

protected:
 PSSnapInException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PSSnapInException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected PSSnapInException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.Runspaces.PSSnapInException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.PSSnapInException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.Runspaces.PSSnapInException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.PSSnapInException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

PSSnapInException(String, Exception)

Initiate an instance of PSSnapInException.

public:
 PSSnapInException(System::String ^ message, Exception ^ innerException);
public PSSnapInException (string message, Exception innerException);
new System.Management.Automation.Runspaces.PSSnapInException : string * Exception -> System.Management.Automation.Runspaces.PSSnapInException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

Error message.

innerException
Exception

Inner exception.

Applies to