DuplicateMetadataObjectException Members

Include Protected Members
Include Inherited Members

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.

The DuplicateMetadataObjectException type exposes the following members.

Constructors

  Name Description
Public method DuplicateMetadataObjectException() Initializes a new instance of the class.
Public method DuplicateMetadataObjectException(String) Initializes a new instance of the class with a specified error message.
Protected method DuplicateMetadataObjectException(SerializationInfo, StreamingContext) Initializes a new instance of the class with serialized data.
Public method DuplicateMetadataObjectException(String, Exception) Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
Public method DuplicateMetadataObjectException(String, String, Type) Initializes a new instance of the class with the specified duplicate metadata name, and the field name and type of the object that contains the duplicate value.
Public method DuplicateMetadataObjectException(String, String, String, Type) Initializes a new instance of the class with a specified error message, the duplicate metadata name, and the field name and type of the object that contains the duplicate value.
Public method DuplicateMetadataObjectException(String, Exception, String, String, Type) 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 name, and the field name and type of the object that contains the duplicate value.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property DuplicateFieldName Gets or sets the field name of the metadata object that contains the duplicate value.
Public property DuplicateMetadataObjectName Gets or sets the name of the duplicate metadata object.
Public property HasExplicitMessage Gets a value that indicates whether the exception has a text message. (Inherited from MetadataException.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message Gets the message of the exception. (Overrides MetadataException.Message.)
Public property MetadataObjectType Gets or sets the type of the metadata object that caused the exception. (Inherited from MetadataException.)
Public property ServerStackTrace Gets or sets the server stack trace. (Inherited from MetadataException.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method GetBaseException (Inherited from Exception.)
Public method GetObjectData Gets the object data with the serialized information about the exception being thrown. (Overrides MetadataException.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method Initialize Initializes the exception object with the specified duplicate metadata name, and the field name and type of the object that contains the duplicate value.
Protected method LogEvent Logs the event in the server event log. (Inherited from MetadataException.)
Public method ToString Creates and returns a string representation of the current exception. (Overrides MetadataException.ToString().)

Top

See Also

Reference

DuplicateMetadataObjectException Class

Microsoft.SharePoint.BusinessData.Administration.Client Namespace