Partager via


DuplicateMetadataObjectException, classe (Microsoft.Office.Server.ApplicationRegistry.Administration)

This exception is thrown if you try to create a metadata object and an object with the same name already exists in the Business Data Catalog.

Espace de noms : Microsoft.Office.Server.ApplicationRegistry.Administration
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class DuplicateMetadataObjectException
    Inherits MetadataException
'Utilisation
Dim instance As DuplicateMetadataObjectException
[SerializableAttribute] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public class DuplicateMetadataObjectException : MetadataException

Remarques

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.

Hiérarchie d'héritage

System.Object
   System.Exception
     Microsoft.Office.Server.ApplicationRegistry.Administration.MetadataException
      Microsoft.Office.Server.ApplicationRegistry.Administration.DuplicateMetadataObjectException

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres DuplicateMetadataObjectException
Microsoft.Office.Server.ApplicationRegistry.Administration, espace de noms