Freigeben über


RegisteredServer-Klasse

Hinweis: Diese API ist veraltet.

The RegisteredServer object represents a SQL Server registered server.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrSmoObject
      Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServer

Namespace:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class RegisteredServer _
    Inherits RegSvrSmoObject _
    Implements ICreatable, IAlterable, IDroppable
'Usage
Dim instance As RegisteredServer
[ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class RegisteredServer : RegSvrSmoObject, 
    ICreatable, IAlterable, IDroppable
[ObsoleteAttribute(L"Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public ref class RegisteredServer sealed : public RegSvrSmoObject, 
    ICreatable, IAlterable, IDroppable
[<SealedAttribute>]
[<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type RegisteredServer =  
    class 
        inherit RegSvrSmoObject 
        interface ICreatable 
        interface IAlterable 
        interface IDroppable 
    end
public final class RegisteredServer extends RegSvrSmoObject implements ICreatable, IAlterable, IDroppable

Der RegisteredServer-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode RegisteredServer() Initializes a new instance of the RegisteredServer object.
Öffentliche Methode RegisteredServer(String) Initializes a new instance of the RegisteredServer object.
Öffentliche Methode RegisteredServer(RegisteredServerCollection, String) Initializes a new instance of the RegisteredServer object.
Öffentliche Methode RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer object.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Description Gets or sets a textual description of the referenced registered server.
Öffentliche Eigenschaft Login Gets or sets the login used to establish a connection with the registered server.
Öffentliche Eigenschaft LoginSecure Gets or sets the Boolean property value that specifies whether the connection is authenticated by Windows Authentication.
Öffentliche Eigenschaft Name Gets or sets the name of the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft Parent Gets the ServerGroup object value that specifies the parent of the RegisteredServer object.
Öffentliche Eigenschaft Properties Gets the properties associated with the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft SecurePassword Gets or sets the password used with SQL Server standard authentication to establish a connection to the registered server.
Öffentliche Eigenschaft ServerInstance Gets or sets the instance of SQL Server that is the registered server.
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft Urn Gets the Urn object value that represents the referenced registered server. (Überschreibt RegSvrSmoObject.Urn.)
Geschützte Eigenschaft UrnSkeleton Gets the Urn object that represents the object. (Geerbt von RegSvrSmoObject.)
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Alter Updates any RegisteredServer object property changes on the instance of SQL Server. 
Öffentliche Methode Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
Öffentliche Methode Drop Removes the RegisteredServer from the server group and the registered server collection.
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetSmoObject Gets a RegSvrSmoObject that is specified by a URN.
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode Initialize Initializes the object. (Geerbt von RegSvrSmoObject.)
Geschützte Methode IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Geerbt von RegSvrSmoObject.)
Öffentliche Methode Refresh Refreshes the properties of the object. (Geerbt von RegSvrSmoObject.)
Geschützte Methode SetParentImpl Sets a parent. (Geerbt von RegSvrSmoObject.)
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Hinweise

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

To get or set RegisteredServer object properties, users must be a member of the sysadmin fixed server role.

To create or drop a registered server, users must be a member of the sysadmin fixed server role.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo.RegisteredServers-Namespace

Andere Ressourcen

Verwalten registrierter Server