Compartir a través de


Clase RegisteredServer

Nota: esta API ya está obsoleta.

The RegisteredServer object represents a SQL Server registered server.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class RegisteredServer _
    Inherits RegSvrSmoObject _
    Implements ICreatable, IAlterable, IDroppable
'Uso
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

El tipo RegisteredServer expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público RegisteredServer() () () () Initializes a new instance of the RegisteredServer object.
Método público RegisteredServer(String) Initializes a new instance of the RegisteredServer object.
Método público RegisteredServer(RegisteredServerCollection, String) Initializes a new instance of the RegisteredServer object.
Método público RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer object.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Description Gets or sets a textual description of the referenced registered server.
Propiedad pública Login Gets or sets the login used to establish a connection with the registered server.
Propiedad pública LoginSecure Gets or sets the Boolean property value that specifies whether the connection is authenticated by Windows Authentication.
Propiedad pública Name Gets or sets the name of the object. (Se hereda de RegSvrSmoObject.)
Propiedad pública Parent Gets the ServerGroup object value that specifies the parent of the RegisteredServer object.
Propiedad pública Properties Gets the properties associated with the object. (Se hereda de RegSvrSmoObject.)
Propiedad pública SecurePassword Gets or sets the password used with SQL Server standard authentication to establish a connection to the registered server.
Propiedad pública ServerInstance Gets or sets the instance of SQL Server that is the registered server.
Propiedad pública State Gets the state of the referenced object. (Se hereda de SmoObjectBase.)
Propiedad pública Urn Gets the Urn object value that represents the referenced registered server. (Invalida RegSvrSmoObject. . :: . .Urn.)
Propiedad protegida UrnSkeleton Gets the Urn object that represents the object. (Se hereda de RegSvrSmoObject.)
Propiedad pública UserData Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase.)

Arriba

Métodos

  Nombre Descripción
Método público Alter Updates any RegisteredServer object property changes on the instance of SQL Server. 
Método protegido CheckObjectState Checks the state of the object. (Se hereda de RegSvrSmoObject.)
Método público Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
Método público Drop Removes the RegisteredServer from the server group and the registered server collection.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetSmoObject Gets a RegSvrSmoObject that is specified by a URN.
Método público GetType (Se hereda de Object.)
Método protegido ImplInitialize Initializes the object. (Se hereda de RegSvrSmoObject.)
Método público Initialize Initializes the object. (Se hereda de RegSvrSmoObject.)
Método protegido IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Se hereda de RegSvrSmoObject.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Refresh Refreshes the properties of the object. (Se hereda de RegSvrSmoObject.)
Método protegido SetParentImpl Sets a parent. (Se hereda de RegSvrSmoObject.)
Método público ToString (Se hereda de Object.)
Método protegido UpdateObjectState Gets the updated object state. (Se hereda de RegSvrSmoObject.)
Método público Validate Validates the state of an object. (Se hereda de SmoObjectBase.)

Arriba

Comentarios

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

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.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.