Поделиться через


WebInvokeAttribute.Method Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets and sets the protocol (for example HTTP) method an operation responds to.

Namespace:  System.ServiceModel.Web
Assembly:  System.ServiceModel.Web.Extensions (in System.ServiceModel.Web.Extensions.dll)

Syntax

'Declaration
Public Property Method As String
public string Method { get; set; }

Property Value

Type: System.String
The protocol method associated with the operation.

Remarks

Method defaults to POST.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.