Поделиться через


Класс RegisteredServer

Примечание. Этот API-интерфейс устарел.

The RegisteredServer object represents a SQL Server registered server.

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

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

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

Синтаксис

'Декларация
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class RegisteredServer _
    Inherits RegSvrSmoObject _
    Implements ICreatable, IAlterable, IDroppable
'Применение
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

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

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

  Имя Описание
Открытый метод RegisteredServer() () () () Initializes a new instance of the RegisteredServer object.
Открытый метод RegisteredServer(String) Initializes a new instance of the RegisteredServer object.
Открытый метод RegisteredServer(RegisteredServerCollection, String) Initializes a new instance of the RegisteredServer object.
Открытый метод RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer object.

В начало

Свойства

  Имя Описание
Открытое свойство Description Gets or sets a textual description of the referenced registered server.
Открытое свойство Login Gets or sets the login used to establish a connection with the registered server.
Открытое свойство LoginSecure Gets or sets the Boolean property value that specifies whether the connection is authenticated by Windows Authentication.
Открытое свойство Name Gets or sets the name of the object. (Производный от RegSvrSmoObject.)
Открытое свойство Parent Gets the ServerGroup object value that specifies the parent of the RegisteredServer object.
Открытое свойство Properties Gets the properties associated with the object. (Производный от RegSvrSmoObject.)
Открытое свойство SecurePassword Gets or sets the password used with SQL Server standard authentication to establish a connection to the registered server.
Открытое свойство ServerInstance Gets or sets the instance of SQL Server that is the registered server.
Открытое свойство State Gets the state of the referenced object. (Производный от SmoObjectBase.)
Открытое свойство Urn Gets the Urn object value that represents the referenced registered server. (Переопределяет RegSvrSmoObject. . :: . .Urn.)
Защищенное свойство UrnSkeleton Gets the Urn object that represents the object. (Производный от RegSvrSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.)

В начало

Методы

  Имя Описание
Открытый метод Alter Updates any RegisteredServer object property changes on the instance of SQL Server. 
Защищенный метод CheckObjectState Checks the state of the object. (Производный от RegSvrSmoObject.)
Открытый метод Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
Открытый метод Drop Removes the RegisteredServer from the server group and the registered server collection.
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetSmoObject Gets a RegSvrSmoObject that is specified by a URN.
Открытый метод GetType (Производный от Object.)
Защищенный метод ImplInitialize Initializes the object. (Производный от RegSvrSmoObject.)
Открытый метод Initialize Initializes the object. (Производный от RegSvrSmoObject.)
Защищенный метод IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (Производный от RegSvrSmoObject.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Refresh Refreshes the properties of the object. (Производный от RegSvrSmoObject.)
Защищенный метод SetParentImpl Sets a parent. (Производный от RegSvrSmoObject.)
Открытый метод ToString (Производный от Object.)
Защищенный метод UpdateObjectState Gets the updated object state. (Производный от RegSvrSmoObject.)
Открытый метод Validate Validates the state of an object. (Производный от SmoObjectBase.)

В начало

Замечания

Thread Safety

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

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.

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

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