Share via


DuplicateMetadataObjectException Constructor (IMetadataObject, String, IExceptionHelper)

Initializes a new instance of the class, which contains a reference to the metadata object that is causing the problem because it is a duplicate.

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

Syntax

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

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

Parameters

  • 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