DuplicateMetadataObjectException 类 (Microsoft.Office.Server.ApplicationRegistry.MetadataModel)

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.

命名空间: Microsoft.Office.Server.ApplicationRegistry.MetadataModel
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class DuplicateMetadataObjectException
    Inherits InvalidMetadataObjectException
用法
Dim instance As DuplicateMetadataObjectException
[SerializableAttribute] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public class DuplicateMetadataObjectException : InvalidMetadataObjectException

继承层次结构

System.Object
   System.Exception
     Microsoft.Office.Server.ApplicationRegistry.MetadataModel.MetadataException
       Microsoft.Office.Server.ApplicationRegistry.MetadataModel.InvalidMetadataObjectException
        Microsoft.Office.Server.ApplicationRegistry.MetadataModel.DuplicateMetadataObjectException

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

DuplicateMetadataObjectException 成员
Microsoft.Office.Server.ApplicationRegistry.MetadataModel 命名空间