Version

IsFirefox Property

Indicates whether the browser being rendered to is Firefox.
Syntax
'Declaration
 
Public ReadOnly Property IsFirefox As Boolean
public bool IsFirefox {get;}

Property Value

True if the browser detected by View was Firefox; false otherwise.
Exceptions
ExceptionDescription
System.NullReferenceExceptionThrown when the View property has not been properly initialized by the subclass in it's constructor before the IsFirefox property is first read.
Remarks

Rendering logic must sometimes render conditional markup or attributes when Firefox is detected as the browser.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also