Compartilhar via


Classe RegisteredServer

Represents a SQL Serverregistered server.

Hierarquia de herança

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
    Microsoft.SqlServer.Management.RegisteredServers..::..RegisteredServer

Namespace:  Microsoft.SqlServer.Management.RegisteredServers
Assembly:  Microsoft.SqlServer.Management.RegisteredServers (em Microsoft.SqlServer.Management.RegisteredServers.dll)

Sintaxe

'Declaração
Public NotInheritable Class RegisteredServer _
    Inherits SfcInstance _
    Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable,  _
    IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable,  _
    ISfcMovable
'Uso
Dim instance As RegisteredServer
public sealed class RegisteredServer : SfcInstance, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
public ref class RegisteredServer sealed : public SfcInstance, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
[<SealedAttribute>]
type RegisteredServer =  
    class
        inherit SfcInstance
        interface ISfcValidate
        interface ISfcCreatable
        interface ICreatable
        interface ISfcAlterable
        interface IAlterable
        interface ISfcDroppable
        interface IDroppable
        interface ISfcRenamable
        interface IRenamable
        interface ISfcMovable
    end
public final class RegisteredServer extends SfcInstance implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable

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 class with the default property values.
Método público RegisteredServer(String) Initializes a new instance of the RegisteredServer class that has the specified name.
Método público RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer class with the specified name and server.

Início

Propriedades

  Nome Descrição
Propriedade protegida AbstractIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Propriedade pública ConnectionString Gets or sets the connection string that is used to connect to the instance of SQL Server.
Propriedade pública ConnectionStringWithEncryptedPassword Gets the connection string that is used to connect to the instance of SQL Server that has the encrypted password. 
Propriedade pública CredentialPersistenceType Gets or sets how the logins and passwords are persisted on the registered server.
Propriedade pública CustomConnectionColorArgb Gets or sets the specified ARGB color of the RegisteredServer object.
Propriedade pública Description Gets the name of the registered server.
Propriedade pública ID Gets the ID value that uniquely identifies the registered server.
Propriedade pública IdentityKey Gets the key value that uniquely identifies the registered server.
Propriedade pública IsDropped Gets the Boolean value that specifies whether the registered server has been dropped or not.
Propriedade pública IsLocal Gets the Boolean value that specifies whether the registered server is local or not.
Propriedade pública Metadata Returns metadata about the instance and its domain. (Herdado de SfcInstance.)
Propriedade pública Name Gets the name of the RegisteredServer object.
Propriedade pública Parent Gets the parent of the RegisteredServer object.
Propriedade pública Properties Returns a collection instance properties. (Herdado de SfcInstance.)
Propriedade protegida PropertyStorageProvider Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Propriedade pública SecureConnectionString Gets or sets the secure string that is used to connect to the instance of SQL Server.
Propriedade pública ServerName Gets or sets the name of the server that is associated with the registered server.
Propriedade pública ServerType Gets or the kind of server that is associated with the registered server.
Propriedade protegida State Returns the state of the SfcInstance object. (Herdado de SfcInstance.)
Propriedade pública Urn Returns the uniform resource name of the SfcInstance object. (Herdado de SfcInstance.)
Propriedade pública UseCustomConnectionColor Gets or sets a value indicating whether the object uses a custom connection color.

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 AlterImpl Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido CheckObjectCreated Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido CheckObjectState Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
Método protegido CreateIdentityKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido CreateImpl Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Discover Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Drop Drops the registered server.
Método protegido DropImpl Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Equals (Herdado de Object.)
Método público Export Exports the registered server to the specified file and using the given credential persistence type.
Método protegido Finalize (Herdado de Object.)
Método protegido GetChildCollection Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetConnectionObject Returns the SFC interface object that represents the connection to the instance of SQL Server.
Método público GetDomain Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público GetHashCode (Herdado de Object.)
Método públicoMembro estático GetObjectFactory Returns the SFC object factory for the RegisteredServer object.
Método público GetPropertySet Returns the set of properties for the SfcInstance object. (Herdado de SfcInstance.)
Método público GetType (Herdado de Object.)
Método protegido GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido InitializeUIPropertyState Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido MarkRootAsConnected Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público Move Specifies the RegisteredServer to move in a new location.
Método protegido MoveImpl Indicates the new parent object to move in an instance. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Herdado de SfcInstance.)
Método protegido OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Herdado de SfcInstance.)
Método protegido PostAlter Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido PostCreate Indicates the default implementor that creates the execution result. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido PostDrop Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido PostMove Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido PostRename Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Refresh Refreshes the object's properties by reading them from the server. (Herdado de SfcInstance.)
Método público Rename(String) Renames the RegisteredServer object by using the specified name.
Método público Rename(SfcKey) Specifies the RegisteredServer object to rename.
Método protegido RenameImpl Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido ResetKey Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Serialize Serializes the instance to XML. (Herdado de SfcInstance.)
Método público ToString Returns a string representation of the instance Urn. (Herdado de SfcInstance.)
Método protegido UpdateUIPropertyState Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método protegido Validate() () () () Indicates the basic child object's validation. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Método público Validate(String, array<Object> [] () [] []) Validates the RegisteredServer object against the specified method and arguments.

Início

Eventos

  Nome Descrição
Evento protegido propertyChanged Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Evento público PropertyChanged CLS-compliant event for property changes. (Herdado de SfcInstance.)
Evento protegido propertyMetadataChanged Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcInstance.)
Evento público PropertyMetadataChanged CLS-compliant event for property metadata changes. (Herdado de SfcInstance.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado ISfcAlterable. . :: . .ScriptAlter Alters the properties of the base object if it has been changed. This class cannot be inherited.
Implementações de interfaces explícitasMétodo privado ISfcCreatable. . :: . .ScriptCreate Produces the script to create this object to storage in its current state. This class cannot be inherited.
Implementações de interfaces explícitasMétodo privado ISfcDroppable. . :: . .ScriptDrop Produces the script to drop this object from storage. This class cannot be inherited.
Implementações de interfaces explícitasMétodo privado ISfcMovable. . :: . .Move Moves this object under the specified parent object and updates the storage to reflect the move. This class cannot be inherited.
Implementações de interfaces explícitasMétodo privado ISfcMovable. . :: . .ScriptMove Produces the script to move this object under the specified parent object. This class cannot be inherited.
Implementações de interfaces explícitasMétodo privado ISfcRenamable. . :: . .ScriptRename Renames the instance of ISfcScript identified by the key parameter. This class cannot be inherited.

Início

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

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.

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.