Bewerken

Delen via


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
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public sealed class ApplicationIdentity : System.Runtime.Serialization.ISerializable
type ApplicationIdentity = class
    interface ISerializable
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type ApplicationIdentity = class
    interface ISerializable
Public NotInheritable Class ApplicationIdentity
Implements ISerializable
Inheritance
ApplicationIdentity
Attributes
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

ApplicationIdentity(String)

Initializes a new instance of the ApplicationIdentity class.

Properties

CodeBase

Gets the location of the deployment manifest as a URL.

FullName

Gets the full name of the application.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns the full name of the manifest-activated application.

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

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

Applies to