ActivationContext.Identity Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the application identity for the current application.

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

Public ReadOnly Property Identity As ApplicationIdentity

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.

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

.NET Framework
Available since 2.0
Return to top
Show: