Edit

Share via


IApplicationIdentifier.GetApplicationId Method

Definition

Gets an identifier for an application domain.

public:
 System::String ^ GetApplicationId();
public string GetApplicationId ();
abstract member GetApplicationId : unit -> string
Public Function GetApplicationId () As String

Returns

A unique identifier for the current application domain.

Remarks

The GetApplicationId method is typically implemented by a .NET Framework host environment in order to construct an application identifier for an ObjectCache implementation. A ObjectCache implementation uses this information to identify the application domain that is currently running.

For example, in ASP.NET, the cache uses an application identifier to construct identifiers for cache performance counters. The cache calls the GetApplicationId method that is implemented by the host environment and the host returns the identifier. This provides names for performance counter instances that can be distinguished between application domains when multiple application domains are running.

Applies to