다음을 통해 공유


GetServerName 메서드

Gets the name of the instance of SQL Server with which the object is associated.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
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
A String value that specifies the name of the instance of SQL Server.