Formats the version.
Namespace: DotNetNuke.CommonAssembly: 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# | |
|---|---|
var version = new Version(6, 0, 0, 147); string formattedVersion = FormatVersion(version, true); // formattedVersion's value will be: 06.00.00(147) | |