Share via


COM.ToString Method

Definition

Returns a string that represents the instance of the COM class.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

A string that contains a description of the instance of the COM class.

Remarks

The following example shows how to use the toString method.

print objCOM.toString();

Applies to