Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.17 KB

appinstance_getactivatedeventargs_19856196.md

File metadata and controls

39 lines (24 loc) · 1.17 KB
-api-id -api-type
M:Windows.ApplicationModel.AppInstance.GetActivatedEventArgs
winrt method

Windows.ApplicationModel.AppInstance.GetActivatedEventArgs

-description

Gets the current IActivatedEventArgs, the same that would normally be passed in to the OnActivated method of the app.

-returns

The current IActivatedEventArgs, or null.

-remarks

This method gets the same arguments that would be passed in to the OnActivated method of the app.

This method allows the app to access its arguments much earlier, in its Main method, which is the first app method to be called.

Note

For packaged apps, this method only returns arguments on its first call. Subsequent calls return null.

-see-also

IActivatedEventArgs

-examples

This example gets the event arguments for the specified app instance.

IActivatedEventArgs activatedArgs = AppInstance.GetActivatedEventArgs();