AppInstance.Unregister Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
}