Compartir a través de


SetValueInvocationException Constructors

Definition

Overloads

SetValueInvocationException()

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

SetValueInvocationException(String)

Initializes a new instance of SetValueInvocationException setting the message.

SetValueInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of SetValueInvocationException with serialization parameters.

SetValueInvocationException(String, Exception)

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

SetValueInvocationException()

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

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

Applies to

SetValueInvocationException(String)

Initializes a new instance of SetValueInvocationException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

SetValueInvocationException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of SetValueInvocationException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

SetValueInvocationException(String, Exception)

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

public:
 SetValueInvocationException(System::String ^ message, Exception ^ innerException);
public SetValueInvocationException (string message, Exception innerException);
new System.Management.Automation.SetValueInvocationException : string * Exception -> System.Management.Automation.SetValueInvocationException
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