语言

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

属性值

对象允许的谓词。

属性

示例

下面的代码示例演示如何访问 Verb 属性。

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

注解

此属性 Verb 可以是以逗号分隔的 HTTP 谓词列表(例如“GET、PUT、POST”)。

适用于