WebBrowser.ObjectForScripting Property
Definition
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기