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
packageContents
Type: Microsoft.SharePoint.BusinessData.Parser.PackageContentsOptions that specify which elements to include in the generated XML.
settingId
Type: System.StringThe 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,