共用方式為


MetadataObject.WriteXml Method (PackageContents, String)

Returns the XML representation of the MetadataObject, which is generated using the properties, localized names, and access control entries from the specified setting.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Function WriteXml ( _
    packageContents As PackageContents, _
    settingId As String _
) As String
'Usage
Dim instance As MetadataObject
Dim packageContents As PackageContents
Dim settingId As String
Dim returnValue As String

returnValue = instance.WriteXml(packageContents, _
    settingId)
public virtual string WriteXml(
    PackageContents packageContents,
    string settingId
)

Parameters

  • settingId
    Type: System.String

    The identifier of a partition in the metadata store to read properties, localized names, and access control entries from.

Return Value

Type: System.String
The XML representation of the MetadataObject,

See Also

Reference

MetadataObject Class

MetadataObject Members

WriteXml Overload

Microsoft.SharePoint.BusinessData.Administration Namespace