Share via


HttpHandlerAction.Verb 屬性

定義

取得或設定 HttpHandlerAction 物件所允許的動作。

public:
 property System::String ^ Verb { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("verb", IsKey=true, IsRequired=true)]
public string Verb { get; set; }
[<System.Configuration.ConfigurationProperty("verb", IsKey=true, IsRequired=true)>]
member this.Verb : string with get, set
Public Property Verb As String

屬性值

String

物件所允許的動作。

屬性

範例

下列程式碼範例示範如何存取 Verb 屬性。

// Change the Verb for the HttpHandlerAction.
httpHandler.Verb = "POST";
' Change the Verb for the HttpHandlerAction.
httpHandler.Verb = "POST"

備註

這個 Verb 屬性可以是以逗號分隔的 HTTP 動詞清單 (,例如「GET、PUT、POST」) 。

適用於