Share via


AppInstance.Unregister Method

Definition

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

public:
 static void Unregister();
 static void Unregister();
public static void Unregister();
function unregister()
Public Shared Sub Unregister ()

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();
}

Applies to