ActivationContext.Identity Property
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.
Gets the application identity for the current application.
public:
property ApplicationIdentity ^ Identity { ApplicationIdentity ^ get(); };
public ApplicationIdentity Identity { get; }
member this.Identity : ApplicationIdentity
Public ReadOnly Property Identity As ApplicationIdentity
Property Value
An ApplicationIdentity object that identifies the current application.
Examples
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
Remarks
An ApplicationIdentity uniquely identifies an application by its full name and location.