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 (从 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 (从 RegSvrSmoObject 继承。)
公共方法 Initialize (从 RegSvrSmoObject 继承。)
受保护方法 IsObjectInitialized (从 RegSvrSmoObject 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Refresh (从 RegSvrSmoObject 继承。)
受保护方法 SetParentImpl (从 RegSvrSmoObject 继承。)
公共方法 ToString (从 Object 继承。)
受保护方法 UpdateObjectState (从 RegSvrSmoObject 继承。)
公共方法 Validate (从 SmoObjectBase 继承。)

页首

注释

Thread Safety

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。