Plugin_Silverlight

 

Type: Integer

 

Returns the version of the visitor’s Microsoft Silverlight plug-in if installed. If it is not possible to detect if the plug-in is installed, -1 is returned. If the plug-in is not installed, 0 is returned. Otherwise the version of Silverlight installed is returned (for example, 1). Note that versions of Silverlight prior to version 1.0 (such as 0.9) are returned as 1.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "plugin_silverlight"

bhObj.GetExtPropertiesEx

%>

<html>Silverlight plug-in is:

<%

silver = bhObj.Plugin_Silverlight

if silver = -1 then

   PropVal = "Not detectable"

   elseif silver = 0 then

   PropVal = "Not installed"

else

   PropVal = "Version " & silver

end if

response.write PropVal

%>

</html>

 

Special notes for this property:

 

See Also:

Plugin_SilverlightVerEx Property

GetExtPropertiesEx Method

SetExtProperties Method