MetadataException Constructors

Definition

Initializes a new instance of the MetadataException class.

Overloads

MetadataException()

Initializes a new instance of the MetadataException class with a default message.

MetadataException(String)

Initializes a new instance of the MetadataException class with the specified message.

MetadataException(String, Exception)

Initializes a new instance of the MetadataException class with the specified message and inner exception.

MetadataException()

Initializes a new instance of the MetadataException class with a default message.

C#
public MetadataException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

MetadataException(String)

Initializes a new instance of the MetadataException class with the specified message.

C#
public MetadataException(string message);

Parameters

message
String

The exception message.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

MetadataException(String, Exception)

Initializes a new instance of the MetadataException class with the specified message and inner exception.

C#
public MetadataException(string message, Exception innerException);

Parameters

message
String

The exception message.

innerException
Exception

The exception that is the cause of this MetadataException.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1