AccessControlledMetadataObject.WriteXmlSecurity 方法 (Microsoft.Office.Server.ApplicationRegistry.Administration)

Writes the XML fragment containing security information.

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

语法

声明
Public Overridable Sub WriteXmlSecurity ( _
    xmlWriter As XmlWriter, _
    packageContents As PackageContents _
)
用法
Dim instance As AccessControlledMetadataObject
Dim xmlWriter As XmlWriter
Dim packageContents As PackageContents

instance.WriteXmlSecurity(xmlWriter, packageContents)
public virtual void WriteXmlSecurity (
    XmlWriter xmlWriter,
    PackageContents packageContents
)

参数

  • xmlWriter
    The XML fragment to be written.
  • packageContents
    Should be PackageContents.Permissions.

备注

This method is typically called during export of the metadata definition or when dumping the contents of a single metadata object as XML. The security information (ACEs + rights) is written only if the PackageContents variable has the PackageContents.Permissions flag set.

另请参阅

参考

AccessControlledMetadataObject 类
AccessControlledMetadataObject 成员
Microsoft.Office.Server.ApplicationRegistry.Administration 命名空间