Export (0) Print
Expand All

ScriptObject Class

Silverlight

Defines the core behavior for the HtmlObject class, and provides a base class for browser Document Object Model (DOM) access types.

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

public class ScriptObject : IDynamicMetaObjectProvider

The ScriptObject type exposes the following members.

  NameDescription
Public propertyDispatcherGets an instance of the dispatcher.
Public propertyManagedObjectGets the underlying managed object reference of the ScriptObject.
Top

  NameDescription
Public methodCheckAccessDetermines whether the current thread is the browser's UI thread.
Protected methodConvertTo(Type, Boolean)Converts the current scriptable object to a specified type, with serialization support.
Public methodConvertTo<T>()Converts the current scriptable object to a specified type.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFrees resources and performs other cleanup operations before the scriptable object is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperty(Int32)Gets the value of a property that is identified by ordinal number on the current scriptable object.
Public methodGetProperty(String)Gets the value of a property that is identified by name on the current scriptable object.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInfrastructure. Initializes a scriptable object.
Public methodInvokeInvokes a method on the current scriptable object, and optionally passes in one or more method parameters.
Public methodInvokeSelfInvokes the current ScriptObject and assumes that it represents a JavaScript method.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetProperty(Int32, Object)Sets the value of a property that is identified by ordinal number on the current scriptable object.
Public methodSetProperty(String, Object)Sets a property that is identified by name on the current scriptable object.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIDynamicMetaObjectProvider.GetMetaObjectReturns the DynamicMetaObject responsible for binding operations performed on this object.
Top

All browser objects are represented by the ScriptObject class. This includes standard JavaScript and DOM objects, as well as windows (HtmlWindow), documents (HtmlDocument), elements (HtmlElement), element collections (ScriptObjectCollection), and even managed objects (ManagedObject, which is an internal type) that are used inside the browser.

Silverlight

Supported in: 5, 4, 3

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft