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.StringThe message string that describes the error.
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