Share via


HtmlAccess Enumeration

Specifies how the Silverlight-based application has access to the HTML document object model (DOM) on a page.

Namespace:  System.Web.UI.SilverlightControls
Assembly:  System.Web.Silverlight (in System.Web.Silverlight.dll)

Syntax

'Declaration
Public Enumeration HtmlAccess
'Usage
Dim instance As HtmlAccess
public enum HtmlAccess

Members

Member name Description
SameDomain Specifies that HTML DOM access is allowed for same-domain applications but not for cross-domain applications.
Disabled Specifies that HTML DOM access is not allowed.
Enabled Specifies that HTML DOM access is allowed.

Remarks

Enabled causes the following parameter to be added to the Silverlight plug-in markup:

<param name="EnableHtmlAccess" value="true"/>

Disabled causes the following parameter to be added to the Silverlight plug-in markup:

<param name="EnableHtmlAccess" value="false"/>

SameDomain does not cause a parameter to be added to the Silverlight plug-in markup.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

System.Web.UI.SilverlightControls Namespace

Other Resources

HTML Bridge: Interaction Between HTML and Managed Code