ExtractHttpHeader.Required 属性

获取或设置一个值,该值指示标头不存在时请求是否失败

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Property Required As Boolean
    Get
    Set
public bool Required { get; set; }
public:
property bool Required {
    bool get ();
    void set (bool value);
}
member Required : bool with get, set
function get Required () : boolean
function set Required (value : boolean)

属性值

类型:System.Boolean
如果标头是必需的,则为 true;否则为 false。默认值为 true。

.NET Framework 安全性

请参见

参考

ExtractHttpHeader 类

Microsoft.VisualStudio.TestTools.WebTesting.Rules 命名空间