DuplicateMetadataObjectException constructor (String, Exception, String, String, Type)
Initializes a new instance of the class with a specified error message, a reference to the inner exception that caused this exception, the duplicate metadata name, and the field name and type of the object that contains the duplicate value.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
inner As Exception, _
DuplicateMetadataObjectName As String, _
DuplicateFieldName As String, _
metadataObjectType As Type _
)
'Usage
Dim message As String
Dim inner As Exception
Dim DuplicateMetadataObjectName As String
Dim DuplicateFieldName As String
Dim metadataObjectType As Type
Dim instance As New DuplicateMetadataObjectException(message, _
inner, DuplicateMetadataObjectName, _
DuplicateFieldName, metadataObjectType)
public DuplicateMetadataObjectException(
string message,
Exception inner,
string DuplicateMetadataObjectName,
string DuplicateFieldName,
Type metadataObjectType
)
Parameters
message
Type: System.StringThe message string that describes the error.
inner
Type: System.ExceptionThe exception that is the cause of the current exception.
DuplicateMetadataObjectName
Type: System.StringThe name of the duplicate metadata object.
DuplicateFieldName
Type: System.StringThe field name of the metadata object that contains the duplicate value.
metadataObjectType
Type: System.TypeThe type of metadata object that contains the duplicate value.
See also
Reference
DuplicateMetadataObjectException class
DuplicateMetadataObjectException members