Udostępnij przez


Właściwość RegisteredServer.ServerInstance

Pobiera lub ustawia wystąpienie SQL Server jest zarejestrowany serwera.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Zestaw:  Microsoft.SqlServer.SmoExtended (w Microsoft.SqlServer.SmoExtended.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property ServerInstance As String
    Get
    Set
'Użycie
Dim instance As RegisteredServer
Dim value As String

value = instance.ServerInstance

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

Wartość właściwości

Typ: System.String
A String wartość określająca wystąpienie SQL Server jest zarejestrowany serwera.