Share via


DuplicateMetadataObjectException Constructor (String, Exception, IMetadataObject, String, IExceptionHelper)

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 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, _
    inner As Exception, _
    duplicateMetadataObject As IMetadataObject, _
    duplicateFieldName As String, _
    exh As IExceptionHelper _
)
'Usage
Dim message As String
Dim inner As Exception
Dim duplicateMetadataObject As IMetadataObject
Dim duplicateFieldName As String
Dim exh As IExceptionHelper

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

Parameters

  • message
    Type: System.String

    The message string that describes the error.

  • inner
    Type: System.Exception

    The exception that is the cause of the current exception.

  • 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