ValidationMetadataException Constructors

Definition

Overloads

ValidationMetadataException()

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

ValidationMetadataException(String)

Initializes a new instance of ValidationMetadataException setting the message.

ValidationMetadataException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of ValidationMetadataException with serialization parameters.

ValidationMetadataException(String, Exception)

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

ValidationMetadataException()

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

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

Applies to

ValidationMetadataException(String)

Initializes a new instance of ValidationMetadataException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

ValidationMetadataException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of ValidationMetadataException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

ValidationMetadataException(String, Exception)

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

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