PackageVersionHelper.ToFormattedString Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ToFormattedString(PackageVersion) | 
						 Returns a string representation of a version with the format 'Major.Minor.Build.Revision'.  | 
        	
| ToFormattedString(PackageVersion, Int32) | 
						 Returns a string representation of a version with the format 'Major.Minor.Build.Revision'.  | 
        	
ToFormattedString(PackageVersion)
- Source:
 - PackageVersionHelper.cs
 
Returns a string representation of a version with the format 'Major.Minor.Build.Revision'.
public static string ToFormattedString(this Windows.ApplicationModel.PackageVersion packageVersion);
	static member ToFormattedString : Windows.ApplicationModel.PackageVersion -> string
	<Extension()>
Public Function ToFormattedString (packageVersion As PackageVersion) As String
	Parameters
- packageVersion
 - Windows.ApplicationModel.PackageVersion
 
The Windows.ApplicationModel.PackageVersion to convert to a string
Returns
Version string of the format 'Major.Minor.Build.Revision'
Applies to
ToFormattedString(PackageVersion, Int32)
- Source:
 - PackageVersionHelper.cs
 
- Source:
 - PackageVersionHelper.cs
 
Returns a string representation of a version with the format 'Major.Minor.Build.Revision'.
public static string ToFormattedString(this Windows.ApplicationModel.PackageVersion packageVersion, int significance = 4);
	static member ToFormattedString : Windows.ApplicationModel.PackageVersion * int -> string
	<Extension()>
Public Function ToFormattedString (packageVersion As PackageVersion, Optional significance As Integer = 4) As String
	Parameters
- packageVersion
 - Windows.ApplicationModel.PackageVersion
 
The Windows.ApplicationModel.PackageVersion to convert to a string
- significance
 - Int32
 
The number of version numbers to return, default is 4 for the full version number.
Returns
Version string of the format 'Major.Minor.Build.Revision'
Examples
Package.Current.Id.Version.ToFormattedString(2); // Returns "7.0" for instance.