共用方式為


AgentObjectBase.GetDBName 方法

Gets the database name that is associated with the object.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Protected Friend Overrides Function GetDBName As String
'用途
Dim returnValue As String 

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

傳回值

型別:System.String
A String value that specifies the name of the database.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

AgentObjectBase 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)