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.Client
Assembly:  Microsoft.SharePoint.BusinessData.Administration.Client (in Microsoft.SharePoint.BusinessData.Administration.Client.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.Client Namespace