Share via


SPMobileMessage.BuildXml Method

Creates the message XML as a whole that conforms to the protocol of the provider of the messaging service.

Namespace:  Microsoft.SharePoint.MobileMessage
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Sub BuildXml ( _
    writer As XmlWriter _
)
'Usage
Dim instance As SPMobileMessage
Dim writer As XmlWriter

instance.BuildXml(writer)
public virtual void BuildXml(
    XmlWriter writer
)

Parameters

Exceptions

Exception Condition
ArgumentException

writer is a null reference (Nothing in Visual Basic).

InvalidOperationException

A required part of the message is a null reference (Nothing in Visual Basic) or contains invalid markup.

Remarks

The default implementation writes the XML version declaration at the top and then combines the parts of the message into an Office Mobile Service (OMS) xmsData element by making calls to the appropriate Build* methods of the object.

The Exceptions section refers to the default implementation.

See Also

Reference

SPMobileMessage Class

SPMobileMessage Members

Microsoft.SharePoint.MobileMessage Namespace