Share via


Classe RegisteredServer

Observação: essa API está obsoleta.

The RegisteredServer object represents a SQL Server registered server.

Hierarquia de herança

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 (em Microsoft.SqlServer.SmoExtended.dll)

Sintaxe

'Declaração
<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

O tipo RegisteredServer expõe os membros a seguir.

Construtores

  Nome Descrição
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.

Início

Propriedades

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

Início

Métodos

  Nome Descrição
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. (Herdado 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 (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetSmoObject Gets a RegSvrSmoObject that is specified by a URN.
Método público GetType (Herdado de Object.)
Método protegido ImplInitialize Initializes the object. (Herdado de RegSvrSmoObject.)
Método público Initialize Initializes the object. (Herdado de RegSvrSmoObject.)
Método protegido IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Herdado de RegSvrSmoObject.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público Refresh Refreshes the properties of the object. (Herdado de RegSvrSmoObject.)
Método protegido SetParentImpl Sets a parent. (Herdado de RegSvrSmoObject.)
Método público ToString (Herdado de Object.)
Método protegido UpdateObjectState Gets the updated object state. (Herdado de RegSvrSmoObject.)
Método público Validate Validates the state of an object. (Herdado de SmoObjectBase.)

Início

Comentários

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

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.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.