Partager via


ServerInstance propriété

Gets or sets the instance of SQL Server that is the registered server.

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

Syntaxe

'Déclaration
<SfcPropertyAttribute> _
Public Property ServerInstance As String
    Get
    Set
'Utilisation
Dim instance As RegisteredServer
Dim value As String

value = instance.ServerInstance

instance.ServerInstance = value
[SfcPropertyAttribute]
public string ServerInstance { get; set; }
[SfcPropertyAttribute]
public:
property String^ ServerInstance {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member ServerInstance : string with get, set
function get ServerInstance () : String
function set ServerInstance (value : String)

Valeur de la propriété

Type : System. . :: . .String
A String value that specifies the instance of SQL Server that is the registered server.