ActivationContext.Identity ActivationContext.Identity ActivationContext.Identity ActivationContext.Identity Property


Gets the application identity for the current application.

 property ApplicationIdentity ^ Identity { ApplicationIdentity ^ get(); };
public ApplicationIdentity Identity { get; }
member this.Identity : ApplicationIdentity
Public ReadOnly Property Identity As ApplicationIdentity

Property Value


The following code example demonstrates the use of an ActivationContext object to obtain the ApplicationIdentity for a manifest-based application. This code example is part of a larger example provided for the ActivationContext class.

ActivationContext ac = AppDomain.CurrentDomain.ActivationContext;
ApplicationIdentity ai = ac.Identity;
Dim ac As ActivationContext = AppDomain.CurrentDomain.ActivationContext
Dim ai As ApplicationIdentity = ac.Identity


An ApplicationIdentity uniquely identifies an application by its full name and location.

Applies to