共用方式為


PSNotSupportedException Constructors

Definition

Overloads

PSNotSupportedException()

Initializes a new instance of the PSNotSupportedException class.

PSNotSupportedException(String)

Initializes a new instance of the PSNotSupportedException class.

PSNotSupportedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the PSNotSupportedException class using data serialized via ISerializable

PSNotSupportedException(String, Exception)

Initializes a new instance of the PSNotSupportedException class.

PSNotSupportedException()

Initializes a new instance of the PSNotSupportedException class.

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

Applies to

PSNotSupportedException(String)

Initializes a new instance of the PSNotSupportedException class.

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

Parameters

message
String

Applies to

PSNotSupportedException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the PSNotSupportedException class using data serialized via ISerializable

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

PSNotSupportedException(String, Exception)

Initializes a new instance of the PSNotSupportedException class.

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

Parameters

message
String
innerException
Exception

Applies to