共用方式為


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. 
公用方法 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。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetSmoObject Gets a RegSvrSmoObject that is specified by a URN.
公用方法 GetType (繼承自 Object。)
公用方法 Initialize Initializes the object. (繼承自 RegSvrSmoObject。)
受保護的方法 IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized. (繼承自 RegSvrSmoObject。)
公用方法 Refresh Refreshes the properties of the object. (繼承自 RegSvrSmoObject。)
受保護的方法 SetParentImpl Sets a parent. (繼承自 RegSvrSmoObject。)
公用方法 ToString (繼承自 Object。)
公用方法 Validate Validates the state of an object. (繼承自 SmoObjectBase。)

上層

備註

Thread Safety

此型別的任何公用靜態 (在 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.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

管理已註冊的伺服器