Share via


InvalidMetadataObjectException Constructor (String, Exception, UInt32, String, String, Type)

Initializes a new instance of the class with the specified error message, a reference to the inner exception that caused this exception, the metadata object ID, the metadata object name, the field name, and the metadata object type.

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

Syntax

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

Dim instance As New InvalidMetadataObjectException(message, _
    inner, invalidMetadataObjectId, _
    invalidMetadataObjectName, invalidFieldName, _
    metadataObjectType)
public InvalidMetadataObjectException(
    string message,
    Exception inner,
    uint invalidMetadataObjectId,
    string invalidMetadataObjectName,
    string invalidFieldName,
    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.

  • invalidMetadataObjectId
    Type: System.UInt32

    The MetadataObjectId of the invalid metadata object.

  • invalidMetadataObjectName
    Type: System.String

    The MetadataObjectId of the invalid metadata object.

  • invalidFieldName
    Type: System.String

    The field name on the metadata object containing the value that is not valid.

  • metadataObjectType
    Type: System.Type

    The metadata object type of the invalid metadata object.

See Also

Reference

InvalidMetadataObjectException Class

InvalidMetadataObjectException Members

InvalidMetadataObjectException Overload

Microsoft.SharePoint.BusinessData.Administration.Client Namespace