Reference.MajorVersion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Long. The number returned depends on the reference type.Reference TypeValue ReturnedAssemblyMajor release number of the reference; 0–9999.COMA long value.
- Attributes
Examples
See the example in Reference.
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.