Share via


MetadataException constructor (String, Exception, Type)

Initializes a new instance of the class with a message, the inner exception, and the metadataObjectType object.

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

Syntax

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

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

Parameters

  • message
    Type: System.String

    The error message that explains the exception.

  • inner
    Type: System.Exception

    The inner exception that caused the current exception, or a a null reference (Nothing in Visual Basic) reference if no inner exception is specified.

  • 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