Share via


DuplicateMetadataObjectException Constructor (String, IMetadataObject, String, IExceptionHelper)

Initializes a new instance of the class with a specified error message, the duplicate metadata object instance, and the name of the field that contains the duplicate.

Namespace:  Microsoft.BusinessData.MetadataModel
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    duplicateMetadataObject As IMetadataObject, _
    duplicateFieldName As String, _
    exh As IExceptionHelper _
)
'Usage
Dim message As String
Dim duplicateMetadataObject As IMetadataObject
Dim duplicateFieldName As String
Dim exh As IExceptionHelper

Dim instance As New DuplicateMetadataObjectException(message, _
    duplicateMetadataObject, duplicateFieldName, _
    exh)
public DuplicateMetadataObjectException(
    string message,
    IMetadataObject duplicateMetadataObject,
    string duplicateFieldName,
    IExceptionHelper exh
)

Parameters

  • message
    Type: System.String

    The message string that describes the error.

  • duplicateFieldName
    Type: System.String

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

See Also

Reference

DuplicateMetadataObjectException Class

DuplicateMetadataObjectException Members

DuplicateMetadataObjectException Overload

Microsoft.BusinessData.MetadataModel Namespace