Share via


DuplicateMetadataObjectException Constructor (String, String, String, Type)

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

Dim instance As New DuplicateMetadataObjectException(message, _
    DuplicateMetadataObjectName, DuplicateFieldName, _
    metadataObjectType)
public DuplicateMetadataObjectException(
    string message,
    string DuplicateMetadataObjectName,
    string DuplicateFieldName,
    Type metadataObjectType
)

Parameters

  • message
    Type: System.String

    The message string that describes the error.

  • DuplicateMetadataObjectName
    Type: System.String

    The name of the duplicate metadata object.

  • DuplicateFieldName
    Type: System.String

    The field name of the metadata object that contains the duplicate value.

  • metadataObjectType
    Type: System.Type

    The type of metadata object that contains the duplicate value.

See Also

Reference

DuplicateMetadataObjectException Class

DuplicateMetadataObjectException Members

DuplicateMetadataObjectException Overload

Microsoft.SharePoint.BusinessData.Administration Namespace