SqlSmoObject.GetServerName メソッド

オブジェクトが関連付けられている SQL Server のインスタンスの名前を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Protected Overridable Function GetServerName As String
'使用
Dim returnValue As String 

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

戻り値

型: System.String
SQL Server のインスタンスの名前を示す String 値。

使用例

メソッドの呼び出し

関連項目

参照

SqlSmoObject クラス

Microsoft.SqlServer.Management.Smo 名前空間