Reference.MajorVersion Property

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

Namespace:  VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

Syntax

'Declaration
ReadOnly Property MajorVersion As Integer
    Get
int MajorVersion { get; }
property int MajorVersion {
    int get ();
}
abstract MajorVersion : int
function get MajorVersion () : int

Property Value

Type: System.Int32
Long.
The number returned depends on the reference type.

Reference Type

Value Returned

Assembly

Major release number of the reference; 0–9999.

COM

A long value.

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.

Examples

See the example in Reference.

.NET Framework Security

See Also

Reference

Reference Interface

VSLangProj Namespace