Upraviť

Zdieľať cez


ActivationContext.Identity Property

Definition

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.

Applies to