HttpCapabilitiesBase::IsBrowser Method (String^)

 

Gets a value indicating whether the client browser is the same as the specified browser.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public:
bool IsBrowser(
	String^ browserName
)

Parameters

browserName
Type: System::String^

The specified browser.

Return Value

Type: System::Boolean

true if the client browser is the same as the specified browser; otherwise, false. The default is false.

The IsBrowser method also returns true if the client browser definition inherits from the specified browser.

.NET Framework
Available since 2.0
Return to top
Show: