다음을 통해 공유


ServerName 속성

Gets the name of the server where the batch was executed.

네임스페이스:  Microsoft.SqlServer.Management.MultiServerConnection
어셈블리:  Microsoft.SqlServer.Management.MultiServerConnection(Microsoft.SqlServer.Management.MultiServerConnection.dll)

구문

‘선언
Public ReadOnly Property ServerName As String
    Get
‘사용 방법
Dim instance As ServerMessageEventArgs
Dim value As String

value = instance.ServerName
public string ServerName { get; }
public:
virtual property String^ ServerName {
    String^ get () sealed;
}
abstract ServerName : string
override ServerName : string
final function get ServerName () : String

속성 값

유형: System. . :: . .String
A String containing the name of the server.

구현

IResultInfo. . :: . .ServerName