Класс RegisteredServer

Represents a registered server.

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Management.RegisteredServers
Сборка:  Microsoft.SqlServer.Management.RegisteredServers (в Microsoft.SqlServer.Management.RegisteredServers.dll)

Синтаксис

'Декларация
Public NotInheritable Class RegisteredServer _
    Inherits SfcInstance _
    Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable,  _
    IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable,  _
    ISfcMovable
'Применение
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

Тип RegisteredServer обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод RegisteredServer() Initializes a new instance of the RegisteredServer class with the default property values.
Открытый метод RegisteredServer(String) Initializes a new instance of the RegisteredServer class that has the specified name.
Открытый метод RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer class with the specified name and server.

В начало

Свойства

  Имя Описание
Защищенное свойство AbstractIdentityKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытое свойство ConnectionString Gets or sets the connection string that is used to connect to the instance of SQL Server.
Открытое свойство ConnectionStringWithEncryptedPassword Gets the connection string that is used to connect to the instance of SQL Server that has the encrypted password. 
Открытое свойство CredentialPersistenceType Gets or sets how the logins and passwords are persisted on the registered server.
Открытое свойство CustomConnectionColorArgb Gets or sets the specified ARGB color of the RegisteredServer object.
Открытое свойство Description Gets the name of the registered server.
Открытое свойство ID Gets the ID value that uniquely identifies the registered server.
Открытое свойство IdentityKey Gets the key value that uniquely identifies the registered server.
Открытое свойство IsDropped Gets the Boolean value that specifies whether the registered server has been dropped or not.
Открытое свойство IsLocal Gets the Boolean value that specifies whether the registered server is local or not.
Открытое свойство Metadata Returns metadata about the instance and its domain. (Производный от SfcInstance.)
Открытое свойство Name Gets the name of the RegisteredServer object.
Открытое свойство Parent Gets the parent of the RegisteredServer object.
Открытое свойство Properties Returns a collection instance properties. (Производный от SfcInstance.)
Открытое свойство SecureConnectionString Gets or sets the secure string that is used to connect to the instance of SQL Server.
Открытое свойство ServerName Gets or sets the name of the server that is associated with the registered server.
Открытое свойство ServerType Gets or the kind of server that is associated with the registered server.
Защищенное свойство State Returns the state of the SfcInstance object. (Производный от SfcInstance.)
Открытое свойство Urn Returns the uniform resource name of the SfcInstance object. (Производный от SfcInstance.)
Открытое свойство UseCustomConnectionColor Gets or sets a value indicating whether the object uses a custom connection color.

В начало

Методы

  Имя Описание
Открытый метод Alter Updates any RegisteredServer object property changes on the instance of SQL Server. 
Открытый метод Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
Защищенный метод CreateIdentityKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Discover Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Drop Drops the registered server.
Открытый метод Equals (Производный от Object.)
Открытый метод Export Exports the registered server to the specified file and using the given credential persistence type.
Защищенный метод GetChildCollection Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод GetConnectionObject Returns the SFC interface object that represents the connection to the instance of SQL Server.
Открытый метод GetDomain Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод GetHashCode (Производный от Object.)
Открытый методСтатический элемент GetObjectFactory Returns the SFC object factory for the RegisteredServer object.
Открытый метод GetPropertySet Returns the set of properties for the SfcInstance object. (Производный от SfcInstance.)
Открытый метод GetType (Производный от Object.)
Защищенный метод GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Защищенный метод InitializeUIPropertyState Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Move Specifies the RegisteredServer to move in a new location.
Защищенный метод OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Производный от SfcInstance.)
Защищенный метод OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Производный от SfcInstance.)
Открытый метод Refresh Refreshes the object's properties by reading them from the server. (Производный от SfcInstance.)
Открытый метод Rename(String) Renames the RegisteredServer object by using the specified name.
Открытый метод Rename(SfcKey) Specifies the RegisteredServer object to rename.
Защищенный метод ResetKey Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SfcInstance.)
Открытый метод Serialize Serializes the instance to XML. (Производный от SfcInstance.)
Открытый метод ToString Returns a string representation of the instance Urn. (Производный от SfcInstance.)
Открытый метод Validate Validates the RegisteredServer object against the specified method and arguments.

В начало

События

  Имя Описание
Открытое событие PropertyChanged CLS-compliant event for property changes. (Производный от SfcInstance.)
Открытое событие PropertyMetadataChanged CLS-compliant event for property metadata changes. (Производный от SfcInstance.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод ISfcAlterable.ScriptAlter Alters the properties of the base object if it has been changed. This class cannot be inherited.
Явная реализация интерфейсаЗакрытый метод ISfcCreatable.ScriptCreate Produces the script to create this object to storage in its current state. This class cannot be inherited.
Явная реализация интерфейсаЗакрытый метод ISfcDroppable.ScriptDrop Produces the script to drop this object from storage. This class cannot be inherited.
Явная реализация интерфейсаЗакрытый метод ISfcMovable.Move Moves this object under the specified parent object and updates the storage to reflect the move. This class cannot be inherited.
Явная реализация интерфейсаЗакрытый метод ISfcMovable.ScriptMove Produces the script to move this object under the specified parent object. This class cannot be inherited.
Явная реализация интерфейсаЗакрытый метод ISfcRenamable.ScriptRename Renames the instance of ISfcScript identified by the key parameter. This class cannot be inherited.

В начало

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.RegisteredServers