MetadataObjectNotFoundException constructor (String, Exception, Type, String)

Initializes a new instance of the class with a specified error message, a reference to the inner exception that caused this exception, the metadata object Microsoft .NET Framework type, and the search criteria.

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, _
    searchCriteria As String _
)
'Usage
Dim message As String
Dim inner As Exception
Dim metadataObjectType As Type
Dim searchCriteria As String

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

Parameters

  • message
    Type: System.String

    The message that describes the error.

  • inner
    Type: System.Exception

    The exception that is the cause of the current exception.

  • metadataObjectType
    Type: System.Type

    The type of metadata object involved in the error.

See also

Reference

MetadataObjectNotFoundException class

MetadataObjectNotFoundException members

MetadataObjectNotFoundException overload

Microsoft.SharePoint.BusinessData.Administration namespace