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.StringThe message string that describes the error.
inner
Type: System.ExceptionThe exception that is the cause of the current exception.
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