Share via


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

Initializes a new instance of the class with the specified error message, 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, _
    invalidMetadataObjectId As UInteger, _
    invalidMetadataObjectName As String, _
    invalidFieldName As String, _
    metadataObjectType As Type _
)
'Usage
Dim message As String
Dim invalidMetadataObjectId As UInteger
Dim invalidMetadataObjectName As String
Dim invalidFieldName As String
Dim metadataObjectType As Type

Dim instance As New InvalidMetadataObjectException(message, _
    invalidMetadataObjectId, invalidMetadataObjectName, _
    invalidFieldName, metadataObjectType)
public InvalidMetadataObjectException(
    string message,
    uint invalidMetadataObjectId,
    string invalidMetadataObjectName,
    string invalidFieldName,
    Type metadataObjectType
)

Parameters

  • message
    Type: System.String

    The error message that explains the exception.

  • invalidMetadataObjectId
    Type: System.UInt32

    The MetadataObjectId of the invalid metadata object.

  • invalidMetadataObjectName
    Type: System.String

    The metadata object name 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