Share via


WebTestRequest.Cache Property

Gets or sets a value that indicates whether to simulate browser caching for the request.

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

Syntax

'Declaration
Public Property Cache As Boolean
public bool Cache { get; set; }
public:
property bool Cache {
    bool get ();
    void set (bool value);
}
member Cache : bool with get, set
function get Cache () : boolean 
function set Cache (value : boolean)

Property Value

Type: Boolean
true to simulate browser caching; otherwise, false. This has a default value of false.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace