Dela via


ParameterBindingException Constructors

Definition

Overloads

ParameterBindingException()

Constructs a ParameterBindingException.

ParameterBindingException(String)

Constructors a ParameterBindingException.

ParameterBindingException(SerializationInfo, StreamingContext)
Obsolete.

Constructors a ParameterBindingException using serialized data.

ParameterBindingException(String, Exception)

Constructs a ParameterBindingException.

ParameterBindingException()

Constructs a ParameterBindingException.

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

Remarks

DO NOT USE!!!

Applies to

ParameterBindingException(String)

Constructors a ParameterBindingException.

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

Parameters

message
String

Message to be included in exception.

Remarks

DO NOT USE!!!

Applies to

ParameterBindingException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructors a ParameterBindingException using serialized data.

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

Parameters

info
SerializationInfo

serialization information

context
StreamingContext

streaming context

Attributes

Applies to

ParameterBindingException(String, Exception)

Constructs a ParameterBindingException.

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

Parameters

message
String

Message to be included in the exception.

innerException
Exception

exception that led to this exception

Remarks

DO NOT USE!!!

Applies to