AssemblyAlgorithmIdAttribute Classe

Definizione

Specifica un algoritmo per l'hashing di tutti i file in un assembly. La classe non può essere ereditata.

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
Ereditarietà
AssemblyAlgorithmIdAttribute
Attributi

Commenti

I valori e i nomi hash del file nell'assembly vengono archiviati nel manifesto dell'assembly. Quando viene caricato un file, il valore hash viene usato per verificare che un file non sia stato modificato dopo la compilazione del manifesto.

Costruttori

Nome Descrizione
AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm)

Inizializza una nuova istanza della AssemblyAlgorithmIdAttribute classe con l'algoritmo hash specificato, utilizzando uno dei membri di AssemblyHashAlgorithm per rappresentare l'algoritmo hash.

AssemblyAlgorithmIdAttribute(UInt32)

Inizializza una nuova istanza della AssemblyAlgorithmIdAttribute classe con l'algoritmo hash specificato, utilizzando un intero senza segno per rappresentare l'algoritmo hash.

Proprietà

Nome Descrizione
AlgorithmId

Ottiene l'algoritmo hash del contenuto di un manifesto dell'assembly.

TypeId

Se implementato in una classe derivata, ottiene un identificatore univoco per questo Attribute.

(Ereditato da Attribute)

Metodi

Nome Descrizione
Equals(Object)

Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
GetHashCode()

Restituisce il codice hash per questa istanza.

(Ereditato da Attribute)
GetType()

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()

Quando sottoposto a override in una classe derivata, indica se il valore di questa istanza è il valore predefinito per la classe derivata.

(Ereditato da Attribute)
Match(Object)

Quando sottoposto a override in una classe derivata, restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

Nome Descrizione
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Esegue il mapping di un set di nomi a un set corrispondente di identificatori dispatch.

(Ereditato da Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera le informazioni sul tipo per un oggetto, che può essere utilizzato per ottenere le informazioni sul tipo per un'interfaccia.

(Ereditato da Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Recupera il numero di interfacce di informazioni sul tipo fornite da un oggetto (0 o 1).

(Ereditato da Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Fornisce l'accesso alle proprietà e ai metodi esposti da un oggetto .

(Ereditato da Attribute)

Si applica a