AssemblyAlgorithmIdAttribute Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Especifica um algoritmo para fazer hash de todos os ficheiros numa assembleia. Esta classe não pode ser herdada.
public ref class AssemblyAlgorithmIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyAlgorithmIdAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AssemblyAlgorithmIdAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)]
public sealed class AssemblyAlgorithmIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)>]
type AssemblyAlgorithmIdAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyAlgorithmIdAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)>]
type AssemblyAlgorithmIdAttribute = class
inherit Attribute
Public NotInheritable Class AssemblyAlgorithmIdAttribute
Inherits Attribute
- Herança
- Atributos
Observações
Os valores e nomes do hash dos ficheiros na assembleia são armazenados no manifesto da assembleia. Quando um ficheiro é carregado, o valor de hash é usado para verificar se um ficheiro não foi alterado desde que o manifesto foi criado.
Construtores
| Name | Description |
|---|---|
| AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm) |
Inicializa uma nova instância da AssemblyAlgorithmIdAttribute classe com o algoritmo de hash especificado, usando um dos membros de AssemblyHashAlgorithm para representar o algoritmo de hash. |
| AssemblyAlgorithmIdAttribute(UInt32) |
Inicializa uma nova instância da AssemblyAlgorithmIdAttribute classe com o algoritmo de hash especificado, usando um inteiro não assinado para representar o algoritmo de hash. |
Propriedades
| Name | Description |
|---|---|
| AlgorithmId |
Obtém o algoritmo de hash do conteúdo de um manifesto assembly. |
| TypeId |
Quando implementado numa classe derivada, obtém um identificador único para esta Attribute. (Herdado de Attribute) |
Métodos
| Name | Description |
|---|---|
| Equals(Object) |
Devolve um valor que indica se esta instância é igual a um objeto especificado. (Herdado de Attribute) |
| GetHashCode() |
Devolve o código de hash para esta instância. (Herdado de Attribute) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| IsDefaultAttribute() |
Quando sobrescrito numa classe derivada, indica se o valor desta instância é o valor padrão para a classe derivada. (Herdado de Attribute) |
| Match(Object) |
Quando sobrescrito numa classe derivada, devolve um valor que indica se esta instância é igual a um objeto especificado. (Herdado de Attribute) |
| MemberwiseClone() |
Cria uma cópia superficial do atual Object. (Herdado de Object) |
| ToString() |
Devolve uma cadeia que representa o objeto atual. (Herdado de Object) |
Implementações de Interface Explícita
| Name | Description |
|---|---|
| _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de despacho. (Herdado de Attribute) |
| _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
Recupera a informação de tipo de um objeto, que pode ser usada para obter a informação de tipo para uma interface. (Herdado de Attribute) |
| _Attribute.GetTypeInfoCount(UInt32) |
Recupera o número de interfaces de informações de tipo que um objeto fornece (0 ou 1). (Herdado de Attribute) |
| _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
Proporciona acesso a propriedades e métodos expostos por um objeto. (Herdado de Attribute) |