AssemblyCultureAttribute Classe

Definizione

Specifica le impostazioni cultura supportate dall'assembly.

public ref class AssemblyCultureAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)]
public sealed class AssemblyCultureAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AssemblyCultureAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AssemblyCultureAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)>]
type AssemblyCultureAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)>]
type AssemblyCultureAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyCultureAttribute = class
    inherit Attribute
Public NotInheritable Class AssemblyCultureAttribute
Inherits Attribute
Ereditarietà
AssemblyCultureAttribute
Attributi

Commenti

L'attributo viene usato dai compilatori per distinguere tra un assembly principale e un assembly satellite. Un assembly principale contiene codice e le risorse delle impostazioni cultura neutrali. Un assembly satellite contiene solo risorse per una determinata cultura, come in [assembly:AssemblyCultureAttribute("de")]. L'inserimento di questo attributo in un assembly e l'uso di un elemento diverso dalla stringa vuota ("") per il nome delle impostazioni cultura renderà l'assembly simile a un assembly satellite anziché a un assembly principale che contiene codice eseguibile. L'etichettatura di una libreria di codice tradizionale con questo attributo lo interromperà, perché nessun altro codice sarà in grado di trovare i punti di ingresso della libreria in fase di esecuzione.

Per altre informazioni, vedere la documentazione di Common Language Infrastructure (CLI), in particolare "Partition II: Metadata Definition and Semantics".

Costruttori

AssemblyCultureAttribute(String)

Inizializza una nuova istanza della classe AssemblyCultureAttribute con le impostazioni cultura supportate dall'assembly di cui definire l'attributo.

Proprietà

Culture

Ottiene le impostazioni cultura supportate dall'assembly con attributi.

TypeId

Quando è implementata in una classe derivata, ottiene un identificatore univoco della classe Attribute.

(Ereditato da Attribute)

Metodi

Equals(Object)

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

(Ereditato da Attribute)
GetHashCode()

Restituisce il codice hash per l'istanza.

(Ereditato da Attribute)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()

In caso di 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 equivale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

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

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

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

Recupera le informazioni sul tipo relative a un oggetto, che possono essere usate per ottenere informazioni sul tipo relative a un'interfaccia.

(Ereditato da Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Recupera il numero delle 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 a proprietà e metodi esposti da un oggetto.

(Ereditato da Attribute)

Si applica a

Vedi anche