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!

Object.ToString

Returns a String that represents the current Object.

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

Return Value

A String that represents the current Object.

Remarks

The default implementation returns the fully qualified name of the class of the Object.

This method can be overridden by a derived class to produce more meaningful results. For example, the base data types return their value.

Example

// Prints out: "System.Object"
Object *o = new Object();
Console->WriteLine (o->ToString());

See Also

Object Class | Object Members | System Namespace | String