AssemblyInformationalVersionAttribute Classe

Definizione

Definisce informazioni aggiuntive sulla versione per un manifesto dell'assembly.

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

Commenti

Annotazioni

A partire da .NET 8 SDK, le informazioni sul commit sono incluse nel valore di questo attributo. Questo comportamento si applica ai progetti destinati a qualsiasi versione .NET. Per ulteriori informazioni, vedere Link alla fonte incluso nel .NET SDK.

L'attributo definito da questa classe associa informazioni aggiuntive sulla versione a un assembly.

Se l'oggetto AssemblyInformationalVersionAttribute non viene applicato a un assembly, viene invece utilizzato il numero di versione specificato dall'attributo AssemblyVersionAttribute .

Sebbene sia possibile specificare qualsiasi testo, viene visualizzato un messaggio di avviso nella compilazione se la stringa non è nel formato utilizzato dal numero di versione dell'assembly o se è in tale formato ma contiene caratteri jolly. Questo avviso è innocuo.

Per Windows Forms app, è possibile ottenere la stringa specificata da questo attributo in fase di esecuzione usando la proprietà Application.ProductVersion. La stringa viene usata anche nel percorso e nella chiave del Registro di sistema fornita dalla Application.UserAppDataPath proprietà e dalla Application.UserAppDataRegistry proprietà .

Costruttori

Nome Descrizione
AssemblyInformationalVersionAttribute(String)

Inizializza una nuova istanza della classe AssemblyInformationalVersionAttribute.

Proprietà

Nome Descrizione
InformationalVersion

Ottiene le informazioni sulla versione.

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

Vedi anche