WebBrowser AddDefaultKeepSubRequestContentUrl Method C# API
Adds a URL, so the content of sub-request responses that match the specified URL fragment will be kept by default for any subsequent Request objects created by this WebBrowser.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax

public virtual void AddDefaultKeepSubRequestContentUrl(
	string urlFragment
)

Parameters

urlFragment
Type: System String
The responses from sub-requests that match this urlFragment will be kept by default.
Remarks

In general, it is not necessary to retain content for sub-requests, and it will incur a performance penalty to do so. However, a situation may arise where it is necessary to check or extract a value from a sub-response. In this situation, you can specify that the content of certain sub-responses should be retained.
Examples

The following example demonstrates keeping the content of the sub-request with the url http://localhost/images/magnifying-glass.png
// Keep the content of the sub-request with the url http://localhost/images/magnifying-glass.png
WebBrowser.AddDefaultKeepSubRequestContentUrl("http://localhost/images/magnifying-glass.png");
See Also