MetadataObject.WriteXml method (PackageContents)

Returns the XML representation of the MetadataObject.

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

public virtual string WriteXml(
	PackageContents packageContents
)

Parameters

packageContents
Type: Microsoft.SharePoint.BusinessData.Parser.PackageContents

Options that specify which elements to include in the generated XML.

Return value

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

The following example illustrates the use of this property on an Model object, which is a MetadaObject type.

Code Snippet: Export a BDC Model From the BDC Metadata Store

Show: