注意:此 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 命名空間
.gif)
.gif)
.gif)
.gif)