共用方式為


RegisteredServer 類別

Represents a SQL Serverregistered 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。)
受保護的屬性 PropertyStorageProvider 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 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. 
受保護的方法 AlterImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectCreated 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Create Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object.
受保護的方法 CreateIdentityKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CreateImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Discover 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Drop Drops the registered server.
受保護的方法 DropImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Equals (繼承自 Object。)
公用方法 Export Exports the registered server to the specified file and using the given credential persistence type.
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 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。)
受保護的方法 MarkForDropImpl Returns a value that indicates the existing objects to be dropped. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MarkRootAsConnected 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Move Specifies the RegisteredServer to move in a new location.
受保護的方法 MoveImpl Indicates the new parent object to move in an instance. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 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。)
受保護的方法 PostAlter 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostCreate Indicates the default implementor that creates the execution result. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostDrop 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostMove 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostRename 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 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.
受保護的方法 RenameImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 ResetKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Serialize Serializes the instance to XML. (繼承自 SfcInstance。)
公用方法 ToString Returns a string representation of the instance Urn. (繼承自 SfcInstance。)
受保護的方法 UpdateUIPropertyState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 Validate() () () () Indicates the basic child object's validation. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Validate(String, array<Object> [] () [] []) Validates the RegisteredServer object against the specified method and arguments.

上層

事件

  名稱 說明
受保護的事件 propertyChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用事件 PropertyChanged CLS-compliant event for property changes. (繼承自 SfcInstance。)
受保護的事件 propertyMetadataChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 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 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

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