GetValueInvocationException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetValueInvocationException() |
Initializes a new instance of GetValueInvocationException with the message set to typeof(GetValueInvocationException).FullName. |
GetValueInvocationException(String) |
Initializes a new instance of GetValueInvocationException setting the message. |
GetValueInvocationException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of GetValueInvocationException with serialization parameters. |
GetValueInvocationException(String, Exception) |
Initializes a new instance of GetValueInvocationException setting the message and innerException. |
GetValueInvocationException()
Initializes a new instance of GetValueInvocationException with the message set to typeof(GetValueInvocationException).FullName.
public:
GetValueInvocationException();
public:
GetValueInvocationException();
GetValueInvocationException();
public GetValueInvocationException ();
Public Sub New ()
Applies to
GetValueInvocationException(String)
Initializes a new instance of GetValueInvocationException setting the message.
public:
GetValueInvocationException(System::String ^ message);
public:
GetValueInvocationException(Platform::String ^ message);
GetValueInvocationException(std::wstring const & message);
public GetValueInvocationException (string message);
new System.Management.Automation.GetValueInvocationException : string -> System.Management.Automation.GetValueInvocationException
Public Sub New (message As String)
Parameters
- message
- String
The exception's message.
Applies to
GetValueInvocationException(SerializationInfo, StreamingContext)
Caution
Legacy serialization support is deprecated since .NET 8
Initializes a new instance of GetValueInvocationException with serialization parameters.
protected:
GetValueInvocationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected GetValueInvocationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected GetValueInvocationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.GetValueInvocationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.GetValueInvocationException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.GetValueInvocationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.GetValueInvocationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Serialization information.
- context
- StreamingContext
Streaming context.
- Attributes
Applies to
GetValueInvocationException(String, Exception)
Initializes a new instance of GetValueInvocationException setting the message and innerException.
public:
GetValueInvocationException(System::String ^ message, Exception ^ innerException);
public GetValueInvocationException (string message, Exception innerException);
new System.Management.Automation.GetValueInvocationException : string * Exception -> System.Management.Automation.GetValueInvocationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The exception's message.
- innerException
- Exception
The exception's inner exception.