PSSecurityException Constructors

Definition

Overloads

PSSecurityException()

Recommended constructor for class PSSecurityException.

PSSecurityException(String)

Constructor for class PSSecurityException.

PSSecurityException(SerializationInfo, StreamingContext)
Obsolete.

Serialization constructor for class PSSecurityException.

PSSecurityException(String, Exception)

Constructor for class PSSecurityException.

PSSecurityException()

Recommended constructor for class PSSecurityException.

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

Applies to

PSSecurityException(String)

Constructor for class PSSecurityException.

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

Parameters

message
String

Applies to

PSSecurityException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Serialization constructor for class PSSecurityException.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

PSSecurityException(String, Exception)

Constructor for class PSSecurityException.

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

Parameters

message
String
innerException
Exception

Applies to