ApplicationIdentity 类

定义

提供唯一标识清单激活的应用程序的能力。Provides the ability to uniquely identify a manifest-activated application. 此类不能被继承。This class cannot be inherited.

public ref class ApplicationIdentity sealed : System::Runtime::Serialization::ISerializable
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public sealed class ApplicationIdentity : System.Runtime.Serialization.ISerializable
type ApplicationIdentity = class
    interface ISerializable
Public NotInheritable Class ApplicationIdentity
Implements ISerializable
继承
ApplicationIdentity
属性
实现

示例

下面的代码示例演示如何使用ActivationContext对象获取基于清单的应用程序的。 ApplicationIdentityThe following code example demonstrates the use of an ActivationContext object to obtain the ApplicationIdentity for a manifest-based application. 此代码示例是为ActivationContext类提供的更大示例的一部分。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

注解

ApplicationIdentity类用于激活基于清单的应用程序。The ApplicationIdentity class is used in the activation of manifest-based applications.

构造函数

ApplicationIdentity(String)

初始化 ApplicationIdentity 类的新实例。Initializes a new instance of the ApplicationIdentity class.

属性

CodeBase

获取作为 URL 的部署清单的位置。Gets the location of the deployment manifest as a URL.

FullName

获取应用程序的全名。Gets the full name of the application.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回清单激活的应用程序的全名。Returns the full name of the manifest-activated application.

显式界面实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用序列化目标对象所需的数据填充 SerializationInfo 对象。Populates a SerializationInfo object with the data needed to serialize the target object.

适用于