GetServerName méthode

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Protected Overridable Function GetServerName As String
'Utilisation
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

Valeur de retour

Type : System. . :: . .String
A String value that specifies the name of the instance of SQL Server.