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
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.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.StringThe error message that explains the exception.
invalidMetadataObjectId
Type: System.UInt32The MetadataObjectId of the invalid metadata object.
invalidMetadataObjectName
Type: System.StringThe metadata object name of the invalid metadata object.
invalidFieldName
Type: System.StringThe field name on the metadata object containing the value that is not valid.
metadataObjectType
Type: System.TypeThe metadata object type of the invalid metadata object.
See Also
Reference
InvalidMetadataObjectException Class
InvalidMetadataObjectException Members