SetValueException Constructors

Definition

Overloads

SetValueException()

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

SetValueException(String)

Initializes a new instance of SetValueException setting the message.

SetValueException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of SetValueException with serialization parameters.

SetValueException(String, Exception)

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

SetValueException()

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

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

Applies to

SetValueException(String)

Initializes a new instance of SetValueException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

SetValueException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of SetValueException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

SetValueException(String, Exception)

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

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