ServerGroup 類別
The ServerGroup class represents a SQL Server server group.
繼承階層
System. . :: . .Object
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
Microsoft.SqlServer.Management.RegisteredServers. . :: . .ServerGroupParent
Microsoft.SqlServer.Management.RegisteredServers..::..ServerGroup
命名空間: Microsoft.SqlServer.Management.RegisteredServers
組件: Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)
語法
'宣告
Public NotInheritable Class ServerGroup _
Inherits ServerGroupParent _
Implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, _
IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, _
ISfcMovable
'用途
Dim instance As ServerGroup
public sealed class ServerGroup : ServerGroupParent,
ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable,
ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
public ref class ServerGroup sealed : public ServerGroupParent,
ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable,
ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
[<SealedAttribute>]
type ServerGroup =
class
inherit ServerGroupParent
interface ISfcValidate
interface ISfcCreatable
interface ICreatable
interface ISfcAlterable
interface IAlterable
interface ISfcDroppable
interface IDroppable
interface ISfcRenamable
interface IRenamable
interface ISfcMovable
end
public final class ServerGroup extends ServerGroupParent implements ISfcValidate, ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, IDroppable, ISfcRenamable, IRenamable, ISfcMovable
ServerGroup 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
ServerGroup() () () () | Initializes a new instance of the ServerGroup class. | |
ServerGroup(String) | Initializes a new instance of the ServerGroup class that has the specified name. | |
ServerGroup(ServerGroup, String) | Initializes a new instance of the ServerGroup class that has the specified name and is a subgroup of the specified parent. |
上層
屬性
名稱 | 說明 | |
---|---|---|
AbstractIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
Description | Gets the name of the server group. | |
DisplayName | Gets the display name of the server group. | |
ID | Gets the ID value that uniquely identifies the server group. | |
IdentityKey | Gets the key value that uniquely identifies the server group. | |
IsDropped | Gets the Boolean value that specifies whether the server group has been dropped or not. | |
IsLocal | Gets the Boolean value that specifies whether the server group local. | |
IsSystemServerGroup | Gets the Boolean value that specifies whether the server group is a system object. | |
Metadata | Returns metadata about the instance and its domain. (繼承自 SfcInstance。) | |
Name | Gets the name of the server group. | |
Parent | Gets the parent of the ServerGroup object. | |
Properties | Returns a collection instance properties. (繼承自 SfcInstance。) | |
PropertyStorageProvider | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
RegisteredServers | Represents a collection of RegisteredServers objects. Each RegisteredServers object represents a registered server. | |
ServerGroups | Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group. | |
ServerType | Gets or the type of server that is associated with the server group. | |
State | Returns the state of the SfcInstance object. (繼承自 SfcInstance。) | |
Urn | Returns the uniform resource name of the SfcInstance object. (繼承自 SfcInstance。) |
上層
方法
名稱 | 說明 | |
---|---|---|
Alter | Updates any ServerGroup 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 ServerGroup object. | |
CreateIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
CreateImpl | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
Discover | Discovers the dependency relationship for the server group. (覆寫 SfcInstance. . :: . .Discover(ISfcDependencyDiscoveryObjectSink)。) | |
Drop | Drops the registered server. | |
DropImpl | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
Equals | (繼承自 Object。) | |
Export | Exports the server group to the specified file and using the specified credential persistence type. | |
Finalize | (繼承自 Object。) | |
GetChildCollection | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
GetDescendantRegisteredServers | Returns a list of the registered servers in a server group. | |
GetDomain | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
GetHashCode | (繼承自 Object。) | |
GetObjectFactory | Returns the SFC object factory for the ServerGroup 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。) | |
Import | Imports groups and servers saved to an XML file and adds them as children of the server group. | |
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 RegisteredServersServerGroup object 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 ServerGroup object by using the specified name. | |
Rename(SfcKey) | Renames the ServerGroup object by using the specified name. | |
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 ServerGroup object against the specified method and arguments. |
上層
事件
名稱 | 說明 | |
---|---|---|
DuplicateFound | An event raised if a duplicate registered server group is encountered. | |
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. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. | |
ISfcCreatable. . :: . .ScriptCreate | Produces the script to create this object to storage in its current state. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. | |
ISfcDroppable. . :: . .ScriptDrop | Produces the script to drop this object from storage. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. | |
ISfcMovable. . :: . .Move | Moves the ServerGroup object under the specified parent object and updates the storage to reflect the move.不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. | |
ISfcMovable. . :: . .ScriptMove | Produces the script to move this object under the specified parent object.不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. | |
ISfcRenamable. . :: . .ScriptRename | Renames the instance of ISfcScript object identified by the key parameter. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。. |
上層
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
Thread Safety
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。