Reference3::MajorVersion Property

 

Gets the major version number of the reference.

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

property int MajorVersion {
	int get();
}

Property Value

Type: System::Int32

An integer whose value depends on the reference type.

Reference Type

Value Returned

Assembly

Major release number of the reference; 0–9999.

COM

A Int value.

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.

This example adds an Assembly and a COM reference to an open Visual Basic or Visual C# project and displays their major version numbers To run this example as an add-in, see How to: Compile and Run the Automation Object Model Code Examples.

The default paths for the reference added are: <installation root>\Program Files\Microsoft.NET\Primary Interop Assemblies for adodb.dll, and <installation root>\Program Files\Common Files\SpeechEngines\Microsoft for spcommon.dll. Replace <file path> in the example with these or other appropriate file paths.

No code example is currently available or this language may not be supported.
Return to top
Show: