SPMobileMessageContentPart.BuildXml Method
Creates the Office Mobile Service (OMS) content element for the content part.
Namespace: Microsoft.SharePoint.MobileMessage
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Sub BuildXml ( _
writer As XmlWriter _
)
'Usage
Dim instance As SPMobileMessageContentPart
Dim writer As XmlWriter
instance.BuildXml(writer)
public virtual void BuildXml(
XmlWriter writer
)
Parameters
writer
Type: System.Xml.XmlWriterThe object that writes the XML markup for the content element.
Exceptions
Exception | Condition |
---|---|
ArgumentException | writer is a null reference (Nothing in Visual Basic). |
Examples
The following is an example of a content element:
<content contentType="text/plain" contentId=Att0.txt@AB1B43B2B0594564B94EF7ABB12B49BA contentLocation="1.txt">I’m running late. Start without me.</content>
See Also
Reference
SPMobileMessageContentPart Class