Share via


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 代理中计划自动管理任务

请参阅

参考

AgentObjectBase 类

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

其他资源

自动执行管理任务(SQL Server 代理)