Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 770 Bytes

appinstance_unregister_1708113967.md

File metadata and controls

32 lines (23 loc) · 770 Bytes
-api-id -api-type
M:Windows.ApplicationModel.AppInstance.Unregister
winrt method

Windows.ApplicationModel.AppInstance.Unregister

-description

Updates the system cache so that the current instance is no longer available for activation redirection.

-remarks

-see-also

-examples

Once registered, an instance remains registered until either the instance process terminates or the instance unregisters itself. This example unregisters the current this app. It no longer takes part in instance redirection. The instance continues to run.

private void OnAllFilesClosed(object sender, EventArgs args)
{
    AppInstance.Unregister();
}