Condividi tramite


SPMobileMessageSmsBuilder.SetTextContent Method (String, Int32)

Creates the complete final XML of a Short Message Service (SMS) message from the specified text.

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

Syntax

'Declaration
Public Sub SetTextContent ( _
    text As String, _
    maxPages As Integer _
)
'Usage
Dim instance As SPMobileMessageSmsBuilder
Dim text As String
Dim maxPages As Integer

instance.SetTextContent(text, maxPages)
public void SetTextContent(
    string text,
    int maxPages
)

Parameters

Remarks

Using this method to build the message, rather than BuildSmsMessage(SPMobileMessagingAccount, String, String) gives you the option of having multiple recipients for the message and to set a limit on the number of pages in the message; but gives you fewer options than using a message building transaction. For more information about message building transactions, see the Remarks in SPMobileMessageSmsBuilder.

If the messaging service imposes a lower page limit than maxPages, then SetTextContent(String, Int32) honors the service’s limit.

See Also

Reference

SPMobileMessageSmsBuilder Class

SPMobileMessageSmsBuilder Members

SetTextContent Overload

Microsoft.SharePoint.MobileMessage Namespace