ActivationContext.Identity Property

 

Gets the application identity for the current application.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public ApplicationIdentity Identity { get; }

Property Value

Type: System.ApplicationIdentity

An ApplicationIdentity object that identifies the current application.

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

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;

.NET Framework
Available since 2.0
Return to top
Show: