編集

ApplicationIdentity Class

Definition

Provides the ability to uniquely identify a manifest-activated application. This class cannot be inherited.

public ref class ApplicationIdentity sealed : System::Runtime::Serialization::ISerializable
public sealed class ApplicationIdentity : System.Runtime.Serialization.ISerializable
type ApplicationIdentity = class
    interface ISerializable
Public NotInheritable Class ApplicationIdentity
Implements ISerializable
Inheritance
ApplicationIdentity
Implements

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

The ApplicationIdentity class is used in the activation of manifest-based applications.

Constructors

Name Description
ApplicationIdentity(String)

Initializes a new instance of the ApplicationIdentity class.

Properties

Name Description
CodeBase

Gets the location of the deployment manifest as a URL.

FullName

Gets the full name of the application.

Methods

Name Description
ToString()

Returns the full name of the manifest-activated application.

Explicit Interface Implementations

Name Description
ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data needed to serialize the target object.

Applies to