AssemblyInformationalVersionAttribute Classe
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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à
- Attributi
Nota
A partire da .NET 8 SDK, le informazioni di commit sono incluse nel valore di questo attributo. Questo comportamento si applica ai progetti destinati a qualsiasi versione .NET. Per altre informazioni, vedere Source Link incluso in .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 usato il numero di versione specificato dall'attributo AssemblyVersionAttribute .
Anche se è 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. L'avviso è puramente informativo.
Per Windows Forms app, è possibile ottenere la stringa specificata in fase di esecuzione usando la Application.ProductVersion proprietà . La stringa viene usata anche nel percorso e nella chiave del Registro di sistema fornita dalla Application.UserAppDataPath proprietà e dalla Application.UserAppDataRegistry proprietà .
Assembly |
Inizializza una nuova istanza della classe AssemblyInformationalVersionAttribute. |
Informational |
Ottiene le informazioni sulla versione. |
Type |
Quando è implementata in una classe derivata, ottiene un identificatore univoco della classe Attribute. (Ereditato da Attribute) |
Equals(Object) |
Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato. (Ereditato da Attribute) |
Get |
Restituisce il codice hash per l'istanza. (Ereditato da Attribute) |
Get |
Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object) |
Is |
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) |
Memberwise |
Crea una copia superficiale dell'oggetto Object corrente. (Ereditato da Object) |
To |
Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |
_Attribute. |
Esegue il mapping di un set di nomi a un set corrispondente di ID dispatch. (Ereditato da Attribute) |
_Attribute. |
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. |
Recupera il numero delle interfacce di informazioni sul tipo fornite da un oggetto (0 o 1). (Ereditato da Attribute) |
_Attribute. |
Fornisce l'accesso a proprietà e metodi esposti da un oggetto. (Ereditato da Attribute) |
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Feedback su .NET
.NET è un progetto open source. Seleziona un collegamento per fornire feedback: