Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BackgroundTransferRequest.Method Property

Gets or sets the HTTP method for the request.

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string Method { get; set; }
<object Method="string" .../>

Property Value

Type: System.String
The request method.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft