DuplicateMetadataObjectException Class
NOTE: This API is now obsolete.
This is just like the InvalidMetadataObjectException class, except that it includes a reference to the duplicate object as well as which field is causing the collision. These fields are not guaranteed to be populated; it is a best effort. When they are populated, they will contain the correct information.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.Office.Server.ApplicationRegistry.MetadataModel.MetadataException
Microsoft.Office.Server.ApplicationRegistry.MetadataModel.InvalidMetadataObjectException
Microsoft.Office.Server.ApplicationRegistry.MetadataModel.DuplicateMetadataObjectException
Namespace: Microsoft.Office.Server.ApplicationRegistry.MetadataModel
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<SerializableAttribute> _
<ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.", _
False)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class DuplicateMetadataObjectException _
Inherits InvalidMetadataObjectException
'Usage
Dim instance As DuplicateMetadataObjectException
[SerializableAttribute]
[ObsoleteAttribute("O12 Application Registry API is deprecated. Please use BusinessData.",
false)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class DuplicateMetadataObjectException : InvalidMetadataObjectException
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.Office.Server.ApplicationRegistry.MetadataModel Namespace