WebTestRequest.Url Property

Gets or sets the URL to the resource 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
'Usage
Dim instance As WebTestRequest 
Dim value As String 

value = instance.Url

instance.Url = value
public string Url { get; set; }
public:
property String^ Url {
    String^ get ();
    void set (String^ value);
}
public function get Url () : String 
public function set Url (value : String)

Property Value

Type: System.String
A URL value.

Remarks

If the setter string can be made into a valid URI object, then this sets the scheme, authority, and path segment of the URI. If there are query string parameters, they will be 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

WebTestRequest Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace