SqlSmoObject.GetDBName Method

Gets the database name that is associated with the object.

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


Protected Friend Overridable Function GetDBName As String
Dim returnValue As String

returnValue = Me.GetDBName()
protected internal virtual string GetDBName()
protected public:
virtual String^ GetDBName()
abstract GetDBName : unit -> string 
override GetDBName : unit -> string 
 function GetDBName() : String

Return Value

Type: System.String
A String value that specifies the name of the object.


Calling Methods