BackgroundTransferRequest.Method Property
Windows Phone
March 22, 2012
Gets or sets the HTTP method for the request.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
This following methods are supported by this property. The string values are not case-sensitive.
-
GET
-
POST
The default method, GET, is used if this property is not set.
This method may throw one of the following exceptions.
|
InvalidOperationException |
A transfer request’s properties cannot be modified after it has been submitted or disposed. |
|
NotSupportedException |
The method type must be GET or POST. |
|
ArgumentNullException |
The method string must not be null or empty. |