Share via


MetadataException constructor (String, Type)

Initializes a new instance of the class with a message, and the metadata object type.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    metadataObjectType As Type _
)
'Usage
Dim message As String
Dim metadataObjectType As Type

Dim instance As New MetadataException(message, _
    metadataObjectType)
public MetadataException(
    string message,
    Type metadataObjectType
)

Parameters

  • message
    Type: System.String

    The error message that explains the exception.

  • metadataObjectType
    Type: System.Type

    The type of metadata object that is causing the exception.

See also

Reference

MetadataException class

MetadataException members

MetadataException overload

Microsoft.SharePoint.BusinessData.Administration namespace