Formats the version.

Namespace: DotNetNuke.Common
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string FormatVersion(
	Version version,
	bool includeBuild
)
Visual Basic
Public Shared Function FormatVersion ( 
	version As Version,
	includeBuild As Boolean
) As String

Parameters

version
Type: System..::..Version
The version.
includeBuild
Type: System..::..Boolean
if set to true [include build].

Return Value

Formatted version as string

Examples

C# Copy imageCopy Code
var version = new Version(6, 0, 0, 147);
string formattedVersion = FormatVersion(version, true); // formattedVersion's value will be: 06.00.00(147)

See Also