Click or drag to resize

VersionInfoGetVersionString(VersionFormats) Method

Gets a formatted String containing the specified version information.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public string GetVersionString(
	VersionFormats versionFormat = VersionFormats.Name|VersionFormats.MajorMinor
)

Parameters

versionFormat  VersionFormats  (Optional)
A VersionFormats specifying which portions of the version information to display.

Return Value

String
A formatted String containing version information.
Remarks
Uses the default newLineToken of 0x0D0A.
Example
C#
var versionInfo = new VersionInfo();
var versionFormat = VersionFormats.MajorMinor;

var version = GetVersionString(versionFormat);

// Returns "2.0"
See Also