VersionInfoGetVersionString(VersionFormats) Method

Gets a formatted String containing the specified version information.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
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