Udostępnij za pośrednictwem


ParsingMetadataException Constructors

Definition

Overloads

ParsingMetadataException()

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

ParsingMetadataException(String)

Initializes a new instance of ParsingMetadataException setting the message.

ParsingMetadataException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of ParsingMetadataException with serialization parameters.

ParsingMetadataException(String, Exception)

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

ParsingMetadataException()

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

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

Applies to

ParsingMetadataException(String)

Initializes a new instance of ParsingMetadataException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

ParsingMetadataException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of ParsingMetadataException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

ParsingMetadataException(String, Exception)

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

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