Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ScriptObject.InvokeSelf Method


Invokes the current ScriptObject and assumes that it represents a JavaScript method.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)
public virtual Object InvokeSelf(
	params Object[] args


Type: System.Object[]
Parameters to be passed to the underlying JavaScript method.

Return Value

Type: System.Object
An object that represents the return value from the underlying JavaScript method.

name is null.


name is an empty string.


name contains an embedded null character (\0).


The method does not exist or is not scriptable.


The current ScriptObject is not a method.


The underlying method invocation results in an error.

The possible types for args follow the rules for passing managed types to JavaScript. The possible return values follow the rules for returning types from JavaScript to managed code using by-reference marshaling rules.

For more information, see Returning or Passing Managed Types to JavaScript.


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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.