다음을 통해 공유


DuplicateMetadataObjectException Class

Represents an exception that is thrown when one or more metadata objects have field values that are equal in a context where this is not allowed.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.BusinessData.Infrastructure.BdcException
      Microsoft.BusinessData.MetadataModel.MetadataException
        Microsoft.BusinessData.MetadataModel.InvalidMetadataObjectException
          Microsoft.BusinessData.MetadataModel.DuplicateMetadataObjectException

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

Syntax

'Declaration
<SerializableAttribute> _
<DataContractAttribute> _
Public Class DuplicateMetadataObjectException _
    Inherits InvalidMetadataObjectException
'Usage
Dim instance As DuplicateMetadataObjectException
[SerializableAttribute]
[DataContractAttribute]
public class DuplicateMetadataObjectException : InvalidMetadataObjectException

Remarks

This exception can be thrown when objects that are loaded from the database have the same name, despite belonging to different data classes. For example, two methods from different data classes have the same Name field value. When instances of these methods are validated, the DuplicateMetadataObjectException exception is thrown. After the objects are cached, validation is not performed again.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DuplicateMetadataObjectException Members

Microsoft.BusinessData.MetadataModel Namespace