SPMobileMessageServiceResponse Constructor (Exception)
Initializes a new instance of the SPMobileMessageServiceResponse class by using the specified exception.
Namespace: Microsoft.SharePoint.MobileMessage
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
e As Exception _
)
'Usage
Dim e As Exception
Dim instance As New SPMobileMessageServiceResponse(e)
public SPMobileMessageServiceResponse(
Exception e
)
Parameters
e
Type: System.ExceptionAn exception whose contents are used to populate the ErrorCode and ErrorText properties.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | e is a null reference (Nothing in Visual Basic). |
Remarks
When the request to the Web service throws an exception, call this constructor and pass the exception object.
See Also
Reference
SPMobileMessageServiceResponse Class
SPMobileMessageServiceResponse Members