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

ScriptObject.InvokeSelf Method

Silverlight

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)
'Declaration
Public Overridable Function InvokeSelf ( _
	ParamArray args As Object() _
) As Object

Parameters

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.
ExceptionCondition
ArgumentNullException

name is Nothing.

ArgumentException

name is an empty string.

-or-

name contains an embedded null character (\0).

-or-

The method does not exist or is not scriptable.

InvalidOperationException

The current ScriptObject is not a method.

-or-

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.

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.