Share via


GetValueException Constructors

Definition

Overloads

GetValueException()

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

GetValueException(String)

Initializes a new instance of GetValueException setting the message.

GetValueException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of GetValueException with serialization parameters.

GetValueException(String, Exception)

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

GetValueException()

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

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

Applies to

GetValueException(String)

Initializes a new instance of GetValueException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

GetValueException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of GetValueException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

GetValueException(String, Exception)

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

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