SPMobileMessageBatchPackage.GetMessage Method
Gets the message with the specified ID.
Namespace: Microsoft.SharePoint.MobileMessage
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetMessage ( _
messageId As Integer _
) As SPMobileMessage
'Usage
Dim instance As SPMobileMessageBatchPackage
Dim messageId As Integer
Dim returnValue As SPMobileMessage
returnValue = instance.GetMessage(messageId)
public SPMobileMessage GetMessage(
int messageId
)
Parameters
messageId
Type: System.Int32The ID of the message.
Return Value
Type: Microsoft.SharePoint.MobileMessage.SPMobileMessage
The requested message.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | There is no message in the package with messageId as its ID. |
See Also
Reference
SPMobileMessageBatchPackage Class