Share via


SqlSmoObject.ToString Method

Returns a String that represents the referenced object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As SqlSmoObject 
Dim returnValue As String 

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
abstract ToString : unit -> string  
override ToString : unit -> string
public override function ToString() : String

Return Value

Type: System.String
A string value that represents the SqlSmoObject object.

Examples

Calling Methods

See Also

Reference

SqlSmoObject Class

Microsoft.SqlServer.Management.Smo Namespace