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”) 。

适用于