Compartilhar via


ScriptBlockToPowerShellNotSupportedException Constructors

Definition

Overloads

ScriptBlockToPowerShellNotSupportedException()

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with the message set to typeof(ScriptBlockToPowerShellNotSupportedException).FullName.

ScriptBlockToPowerShellNotSupportedException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with serialization parameters.

ScriptBlockToPowerShellNotSupportedException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException.

ScriptBlockToPowerShellNotSupportedException()

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with the message set to typeof(ScriptBlockToPowerShellNotSupportedException).FullName.

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

Applies to

ScriptBlockToPowerShellNotSupportedException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

ScriptBlockToPowerShellNotSupportedException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException.

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

Parameters

message
String

The exception's message.

innerException
Exception

The exception's inner exception.

Applies to