WebTestRequest.Url 属性

获取或设置为请求使用的资源的 URL。

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

语法

声明
Public Property Url As String
public string Url { get; set; }
public:
property String^ Url {
    String^ get ();
    void set (String^ value);
}
member Url : string with get, set
function get Url () : String
function set Url (value : String)

属性值

类型:System.String
一个 URL 值。

备注

如果 setter 字符串可以转换为有效的统一资源定位符 (URI) 对象,那么这将设置 URI 的方案、颁发机构和路径段。如果存在查询字符串参数,则它们将不会添加到 Url 属性中。查询字符串参数将替换 QueryStringParameters 属性中的值。

如果 setter 字符串无法转换为有效的 URI 对象,则将原封不动地使用所传递的 URL。

.NET Framework 安全性

请参见

参考

WebTestRequest 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间