NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Version.ToString

Overloaded. Returns a string representation of this Version.

Overload List

Returns the default string representation of this Version object. The format of the string returned is:

<majorVersion>.<minorVersion>[.<revision>[.<build>]]

Missing components of the Version are omitted in the returned string.

[Visual Basic] Overloads Overrides Public Function ToString() As String
[C#] public override string ToString();
[C++] public: override String* ToString();
[JScript] public override function ToString() : String;

Returns the default string representation of this Version that contains the specified number of components. The format of the string returned is:

<majorVersion>.<minorVersion>[.<revision>[.<build>]]

[Visual Basic] Overloads Public Function ToString(Integer) As String
[C#] public string ToString(int);
[C++] public: String* ToString(int);
[JScript] public function ToString(int) : String;

Example

For example, if Version was created using the constructor Version(1,3,5), the value returned for ToString(2) is 1.3. ArgumentException will be thrown for ToString(4).

See Also

Version Class | Version Members | System Namespace