WebBrowserVirtualUser GetProtocol Method C# API
Gets a Protocol by looking up a string in this Virtual User's data dictionary.

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

public virtual Protocol GetProtocol(
	string key,
	string defaultValue
)

Parameters

key
Type: System String
The key to look for in the data dictionary.
defaultValue
Type: System String
The default value to use if the specified key does not exist in this Virtual User's data dictionary.

Return Value

The Protocol, or a Protocol relating to the defaultValue parameter.
Examples

The following example demonstrates looking for a protocol in a Virtual User's data dictionary.
// Look in the data dictionary for the key "protocol1". If this key doesn't exist, then default to Protocol.HTTP
Protocol protocol1 = GetProtocol("protocol1", "http");
See Also