Partager via


Propriété ServerName

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

Espace de noms :  Microsoft.SqlServer.Management.MultiServerConnection
Assembly :  Microsoft.SqlServer.Management.MultiServerConnection (en Microsoft.SqlServer.Management.MultiServerConnection.dll)

Syntaxe

'Déclaration
Public ReadOnly Property ServerName As String
    Get
'Utilisation
Dim instance As ResultInfo
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

Valeur de propriété

Type : System. . :: . .String
A String that contains the name of the server.

Implémente

IResultInfo. . :: . .ServerName