RegisteredServer 类

Represents a registered server.

继承层次结构

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer

命名空间:  Microsoft.SqlServer.Management.RegisteredServers
程序集:  Microsoft.SqlServer.Management.RegisteredServers(在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

语法

声明
Public NotInheritable Class RegisteredServer _
    Inherits SfcInstance _
    Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable,  _
    IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable,  _
    ISfcMovable
用法
Dim instance As RegisteredServer
public sealed class RegisteredServer : SfcInstance, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
public ref class RegisteredServer sealed : public SfcInstance, 
    ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, 
    ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
[<SealedAttribute>]
type RegisteredServer =  
    class 
        inherit SfcInstance 
        interface ISfcValidate 
        interface ISfcCreatable 
        interface ICreatable 
        interface ISfcAlterable 
        interface IAlterable 
        interface ISfcDroppable 
        interface IDroppable 
        interface ISfcRenamable 
        interface IRenamable 
        interface ISfcMovable 
    end
public final class RegisteredServer extends SfcInstance implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable

RegisteredServer 类型公开以下成员。

构造函数

  名称 说明
公共方法 RegisteredServer() Initializes a new instance of the RegisteredServer class with the default property values.
公共方法 RegisteredServer(String) Initializes a new instance of the RegisteredServer class that has the specified name.
公共方法 RegisteredServer(ServerGroup, String) Initializes a new instance of the RegisteredServer class with the specified name and server.

页首

属性

  名称 说明
受保护属性 AbstractIdentityKey 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共属性 ConnectionString Gets or sets the connection string that is used to connect to the instance of SQL Server.
公共属性 ConnectionStringWithEncryptedPassword Gets the connection string that is used to connect to the instance of SQL Server that has the encrypted password. 
公共属性 CredentialPersistenceType Gets or sets how the logins and passwords are persisted on the registered server.
公共属性 CustomConnectionColorArgb Gets or sets the specified ARGB color of the RegisteredServer object.
公共属性 Description Gets the name of the registered server.
公共属性 ID Gets the ID value that uniquely identifies the registered server.
公共属性 IdentityKey Gets the key value that uniquely identifies the registered server.
公共属性 IsDropped Gets the Boolean value that specifies whether the registered server has been dropped or not.
公共属性 IsLocal Gets the Boolean value that specifies whether the registered server is local or not.
公共属性 Metadata Returns metadata about the instance and its domain. (从 SfcInstance 继承。)
公共属性 Name Gets the name of the RegisteredServer object.
公共属性 Parent Gets the parent of the RegisteredServer object.
公共属性 Properties Returns a collection instance properties. (从 SfcInstance 继承。)
公共属性 SecureConnectionString Gets or sets the secure string that is used to connect to the instance of SQL Server.
公共属性 ServerName Gets or sets the name of the server that is associated with the registered server.
公共属性 ServerType Gets or the kind of server that is associated with the registered server.
受保护属性 State Returns the state of the SfcInstance object. (从 SfcInstance 继承。)
公共属性 Urn Returns the uniform resource name of the SfcInstance object. (从 SfcInstance 继承。)
公共属性 UseCustomConnectionColor Gets or sets a value indicating whether the object uses a custom connection color.

页首

方法

  名称 说明
公共方法 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.
受保护方法 CreateIdentityKey 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 Discover 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 Drop Drops the registered server.
公共方法 Equals (从 Object 继承。)
公共方法 Export Exports the registered server to the specified file and using the given credential persistence type.
受保护方法 GetChildCollection 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 GetConnectionObject Returns the SFC interface object that represents the connection to the instance of SQL Server.
公共方法 GetDomain 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法静态成员 GetObjectFactory Returns the SFC object factory for the RegisteredServer object.
公共方法 GetPropertySet Returns the set of properties for the SfcInstance object. (从 SfcInstance 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
受保护方法 InitializeUIPropertyState 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 Move Specifies the RegisteredServer to move in a new location.
受保护方法 OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (从 SfcInstance 继承。)
受保护方法 OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (从 SfcInstance 继承。)
公共方法 Refresh Refreshes the object's properties by reading them from the server. (从 SfcInstance 继承。)
公共方法 Rename(String) Renames the RegisteredServer object by using the specified name.
公共方法 Rename(SfcKey) Specifies the RegisteredServer object to rename.
受保护方法 ResetKey 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。)
公共方法 Serialize Serializes the instance to XML. (从 SfcInstance 继承。)
公共方法 ToString Returns a string representation of the instance Urn. (从 SfcInstance 继承。)
公共方法 Validate Validates the RegisteredServer object against the specified method and arguments.

页首

事件

  名称 说明
公共事件 PropertyChanged CLS-compliant event for property changes. (从 SfcInstance 继承。)
公共事件 PropertyMetadataChanged CLS-compliant event for property metadata changes. (从 SfcInstance 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 ISfcAlterable.ScriptAlter Alters the properties of the base object if it has been changed. This class cannot be inherited.
显式接口实现私有方法 ISfcCreatable.ScriptCreate Produces the script to create this object to storage in its current state. This class cannot be inherited.
显式接口实现私有方法 ISfcDroppable.ScriptDrop Produces the script to drop this object from storage. This class cannot be inherited.
显式接口实现私有方法 ISfcMovable.Move Moves this object under the specified parent object and updates the storage to reflect the move. This class cannot be inherited.
显式接口实现私有方法 ISfcMovable.ScriptMove Produces the script to move this object under the specified parent object. This class cannot be inherited.
显式接口实现私有方法 ISfcRenamable.ScriptRename Renames the instance of ISfcScript identified by the key parameter. This class cannot be inherited.

页首

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

Thread Safety

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

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.RegisteredServers 命名空间