AgentObjectBase.GetDBName Method

Gets the database name that is associated with the object.

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

Syntax

'Declaration
Protected Friend Overrides Function GetDBName As String
'Usage
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

Return Value

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

AgentObjectBase Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)