SPMobileMessage.AddRecipient method

Adds a recipient for the message.

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

Syntax

'Declaration
Public Overridable Function AddRecipient ( _
    recipient As String _
) As Boolean
'Usage
Dim instance As SPMobileMessage
Dim recipient As String
Dim returnValue As Boolean

returnValue = instance.AddRecipient(recipient)
public virtual bool AddRecipient(
    string recipient
)

Parameters

Return value

Type: System.Boolean
true if the recipient was added; otherwise, false.

Exceptions

Exception Condition
ArgumentException

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

Remarks

Typically, recipient is the telephone number of the recipient’s mobile telephone.

See also

Reference

SPMobileMessage class

SPMobileMessage members

Microsoft.SharePoint.MobileMessage namespace