WebView.InvokeScript method

1 out of 7 rated this helpful - Rate this topic

Executes the specified script function from the currently loaded HTML, with specific arguments.

Syntax


public string InvokeScript(
  string scriptName, 
  String[] arguments
)

Parameters

scriptName

Type: System.String [.NET] | Platform::String [C++]

The name of the script function to invoke.

arguments

Type: String[]

A string array that packages arguments to the script function.

Return value

Type: System.String [.NET] | Platform::String [C++]

The result of the script invocation.

Remarks

The invoked script can return only string values.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

WebView

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.