Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
WebBrowser.ObjectForScripting Property
Definition
- Namespace:
- System.Windows.Controls
- Assembly:
- PresentationFramework.dll
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an instance of a public class, implemented by the host application, that can be accessed by script from a hosted document.
public:
property System::Object ^ ObjectForScripting { System::Object ^ get(); void set(System::Object ^ value); };
public object ObjectForScripting { get; [System.Security.SecurityCritical] set; }
public object ObjectForScripting { get; set; }
[<set: System.Security.SecurityCritical>]
member this.ObjectForScripting : obj with get, set
member this.ObjectForScripting : obj with get, set
Public Property ObjectForScripting As Object
Property Value
The Object that is an instance of a public class, implemented by the host application, that can be accessed by script from a hosted document.
- Attributes
Exceptions
ObjectForScripting is set with an instance of type that is not COMVisible.
Remarks
This property can be set to any COM-visible object for which you want its public properties and methods available to scripting code. You can make a class COM-visible by marking it with the ComVisibleAttribute.
The object that is set for scripting is exposed to the current document by the HTML DOM using the window.external property.
Applies to
Feedback
Was this page helpful?
