Freigeben über


Reference2.MajorVersion Property

Definition

Gets the major version number of the reference. Read-only.

public:
 property int MajorVersion { int get(); };
public:
 property int MajorVersion { int get(); };
[System.Runtime.InteropServices.DispId(11)]
public int MajorVersion { [System.Runtime.InteropServices.DispId(11)] get; }
[<System.Runtime.InteropServices.DispId(11)>]
[<get: System.Runtime.InteropServices.DispId(11)>]
member this.MajorVersion : int
Public ReadOnly Property MajorVersion As Integer

Property Value

An integer whose value depends on the reference type.Reference TypeValue ReturnedAssemblyMajor release number of the reference; 0–9999.COMA long value.

Implements

Attributes

Remarks

The version of a reference is uniquely identified by four components: major, minor, build, and revision. The major and minor components are required. The revision component is optional when build is not defined. COM objects do not have revision and build components. For more information, see Assembly Versioning.

Applies to