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)
Parameters
- args
- Type: System.Object[]
Parameters to be passed to the underlying JavaScript method.
Return Value
Type: System.ObjectAn object that represents the return value from the underlying JavaScript method.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null. |
| 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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.