[This documentation is preliminary and is subject to change.]
Applies to: Metro style apps only
Provides data for the ScriptNotify event.
Inheritance
- Object
- NotifyEventArgs
Syntax
Attributes
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The NotifyEventArgs class has these types of members:
Methods
The NotifyEventArgs class inherits methods from the Object class.
Properties
The NotifyEventArgs class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the method name as passed to the application. |
Examples
The following code example demonstrates the use of the ScriptNotify event.
public MyPage() { this.InitializeComponent(); MyWebView.ScriptNotify += MyWebView_ScriptNotify; // Here we have to set the AllowedScriptNotifyUri property because we are // navigating to some site where we don't own the content and we want to // allow window.external.notify() to pass data back to the app. List<Uri> allowedUris = new List<Uri>(); allowedUris.Add(new Uri("http://www.bing.com")); MyWebView.AllowedScriptNotifyUris = allowedUris; } void MyWebView_ScriptNotify(object sender, NotifyEventArgs e) { // Respond to the script notification. }
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 5/22/2012
