HttpRequestMessageProperty.Method Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the HTTP verb for the HTTP request.
Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public Property Method As String
public string Method { get; set; }
Property Value
Type: System.String
The HTTP verb for the HTTP request.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | value set is nulla null reference (Nothing in Visual Basic). |
Remarks
By default, Silverlight 5 uses the POST verb for HTTP messages. The GET verb is used by Silverlight 5 to display help information when accessing a ServiceHost's base address. This is useful for checking whether a service is active when using a Web browser. Other methods defined by the HTTP RFC are PUT, DELETE, HEAD, OPTIONS, TRACE, and CONNECT. These methods have special behaviors when interoperating with other services.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.