ApplicationIdentity Classe
Definição
Fornece a capacidade de identificar com exclusividade um aplicativo ativado por manifesto.Provides the ability to uniquely identify a manifest-activated application. Essa classe não pode ser herdada.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
- Herança
-
ApplicationIdentity
- Atributos
- Implementações
Exemplos
O exemplo de código a seguir demonstra o uso de um ActivationContext objeto para obter o ApplicationIdentity para um aplicativo baseado em manifesto.The following code example demonstrates the use of an ActivationContext object to obtain the ApplicationIdentity for a manifest-based application. Este exemplo de código faz parte de um exemplo maior fornecido para a ActivationContext classe.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
Comentários
A ApplicationIdentity classe é usada na ativação de aplicativos baseados em manifesto.The ApplicationIdentity class is used in the activation of manifest-based applications.
Construtores
| ApplicationIdentity(String) |
Inicializa uma nova instância da classe ApplicationIdentity.Initializes a new instance of the ApplicationIdentity class. |
Propriedades
| CodeBase |
Obtém o local do manifesto de implantação como uma URL.Gets the location of the deployment manifest as a URL. |
| FullName |
Obtém o nome completo do aplicativo.Gets the full name of the application. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna o nome completo do aplicativo ativado pelo manifesto.Returns the full name of the manifest-activated application. |
Implantações explícitas de interface
| ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
Popula um objeto SerializationInfo com os dados necessários para serializar o objeto de destino.Populates a SerializationInfo object with the data needed to serialize the target object. |