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 中的 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。
请参阅
参考
Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空间