Returns a string that represents the current Object.
Syntax
| Visual Basic (Declaration) | |
|---|
Overrides Public Function ToString() As String |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Device
Dim value As String
value = instance.ToString() |
| C# | |
|---|
public override string ToString() |
| C++/CLI | |
|---|
public:
String^ ToString(); override |
Return Value
A human readable string.
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also