Share via


WebTestRequest.Url Property

Gets or sets the URL to the resource that is used for the request.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
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)

Property Value

Type: String
A URL value.

Remarks

If the setter string can be made into a valid uniform resource identifier (URI) object, this sets the scheme, authority, and path segment of the URI. If query string parameters occur, they will not be added to the Url property. The query string parameters will replace the value in the QueryStringParameters property.

If the setter string cannot be made into a valid URI object, the URL is used as passed.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace