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
recipient
Type: System.StringThe recipient to be added.
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.