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 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。