다음을 통해 공유


ScriptObject.Initialize Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Initializes a scriptable object.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Protected Sub Initialize ( _
    handle As IntPtr, _
    identity As IntPtr, _
    addReference As Boolean, _
    releaseReferenceOnDispose As Boolean _
)
protected void Initialize(
    IntPtr handle,
    IntPtr identity,
    bool addReference,
    bool releaseReferenceOnDispose
)

Parameters

  • handle
    Type: System.IntPtr
    The handle to the object to initialize.
  • addReference
    Type: System.Boolean
    true to specify that the HTML Bridge should assign a reference count to this object; otherwise, false.
  • releaseReferenceOnDispose
    Type: System.Boolean
    true to release the reference on dispose; otherwise, false.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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