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
duplicateMetadataObject
Type: Microsoft.BusinessData.MetadataModel.IMetadataObjectThe duplicate metadata object.
duplicateFieldName
Type: System.StringThe field name on the metadata object that contains the duplicate value.
exh
Type: Microsoft.BusinessData.Infrastructure.IExceptionHelperThe exception helper that assists in localization of the error message.
See Also
Reference
DuplicateMetadataObjectException Class
DuplicateMetadataObjectException Members