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 值。

示例

调用方法