Share via


GetDBName 方法

取得與物件相關聯的資料庫名稱。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 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

傳回值

型別:System. . :: . .String
指定物件名稱的 String 值。

範例

呼叫方法