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
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.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.StringThe error message that explains the exception.
inner
Type: System.ExceptionThe inner exception that caused the current exception.
invalidMetadataObjectId
Type: System.UInt32The MetadataObjectId of the invalid metadata object.
invalidMetadataObjectName
Type: System.StringThe MetadataObjectId 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