WebInvokeAttribute.Method Eigenschap

Definitie

Hiermee haalt u de protocolmethode (bijvoorbeeld HTTP) op waarop de servicebewerking reageert.

public:
 property System::String ^ Method { System::String ^ get(); void set(System::String ^ value); };
public string Method { get; set; }
member this.Method : string with get, set
Public Property Method As String

Waarde van eigenschap

De protocolmethode die aan de bewerking is gekoppeld.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de Method eigenschap instelt.

[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "Mod?x={x}&y={y}")]
long Mod(long x, long y);
 <OperationContract()> _
<WebInvoke(Method:="POST", UriTemplate:="Mod?x={x}&y={y}")> _
Function Modulo(ByVal x As Long, ByVal y As Long) As Long

Opmerkingen

Method standaard ingesteld op POST.

Van toepassing op