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.

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

Applies to

MetadataException(String)

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

public:
 MetadataException(System::String ^ message);
public MetadataException (string message);
new System.Data.MetadataException : string -> System.Data.MetadataException
Public Sub New (message As String)

Parameters

message
String

The exception message.

Applies to

MetadataException(String, Exception)

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

public:
 MetadataException(System::String ^ message, Exception ^ innerException);
public MetadataException (string message, Exception innerException);
new System.Data.MetadataException : string * Exception -> System.Data.MetadataException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The exception message.

innerException
Exception

The exception that is the cause of this MetadataException.

Applies to