Condividi tramite


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