MetadataObject.WriteXml Method (PackageContents)

Returns the XML representation of the MetadataObject.

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

Syntax

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

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

Parameters

Return Value

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

Examples

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

See Also

Reference

MetadataObject Class

MetadataObject Members

WriteXml Overload

Microsoft.SharePoint.BusinessData.Administration Namespace