Version::ToString Method (Int32)
Assembly: mscorlib (in mscorlib.dll)
The number of components to return. The fieldCount ranges from 0 to 4.
Return ValueType: System::String^
The String representation of the values of the major, minor, build, and revision components of the current Version object, each separated by a period character ('.'). The fieldCount parameter determines how many components are returned.
An empty string ("").
For example, if you create Version object using the constructor Version(1,3,5), ToString(2) returns "1.3" and ToString(4) throws an exception.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1