共用方式為


GetDBName 方法

Gets the database name that is associated with the object.

命名空間:  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
A String value that specifies the name of the object.

範例

呼叫方法