共用方式為


ServerGroup.Key 類別

Represents the property that is associated with the object that is used to uniquely identify the object.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcKey
    Microsoft.SqlServer.Management.RegisteredServers..::..ServerGroup..::..Key

命名空間:  Microsoft.SqlServer.Management.RegisteredServers
組件:  Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

語法

'宣告
Public NotInheritable Class Key _
    Inherits SfcKey
'用途
Dim instance As ServerGroup.Key
public sealed class Key : SfcKey
public ref class Key sealed : public SfcKey
[<SealedAttribute>]
type Key =  
    class
        inherit SfcKey
    end
public final class Key extends SfcKey

ServerGroup..::..Key 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ServerGroup. . :: . .Key() () () () Initializes a new instance of the ServerGroup..::..Key class.
公用方法 ServerGroup. . :: . .Key(String) Initializes a new instance of the ServerGroup..::..Key class that has the specified name.
公用方法 ServerGroup. . :: . .Key(ServerGroup. . :: . .Key) Initializes a new instance of the ServerGroup..::..Key class that is based on the referenced key object.

上層

屬性

  名稱 說明
公用屬性 Name Gets a String value that specifies the name of the server group key.

上層

方法

  名稱 說明
公用方法 Equals(Object) Determines whether the specified Object is equal to the server group represented by the ServerGroup..::..Key object. (覆寫 SfcKey. . :: . .Equals(Object)。)
公用方法 Equals(SfcKey) Determines whether the object identified by the specified Key is equal to the server group represented by the ServerGroup..::..Key object. (覆寫 SfcKey. . :: . .Equals(SfcKey)。)
公用方法靜態成員 Equals(Object, Object) Determines whether the two specified objects are the same.
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode Gets the hash code for the server group. (覆寫 SfcKey. . :: . .GetHashCode() () () ()。)
公用方法 GetType (繼承自 Object。)
公用方法 GetUrnFragment Gets the partial unique resource name (URN) path string that represents the server group. (覆寫 SfcKey. . :: . .GetUrnFragment() () () ()。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Returns a String value that is a sortable representation of the object that can be used in external comparers. (繼承自 SfcKey。)

上層

運算子

  名稱 說明
公用運算子靜態成員 Equality(Object, ServerGroup. . :: . .Key) Determines whether the object identified by a Object is the same as the object identified by a ServerGroup..::..Key.
公用運算子靜態成員 Equality(ServerGroup. . :: . .Key, ServerGroup. . :: . .Key) Determines whether the objects identified by two ServerGroup..::..Key objects are the same.
公用運算子靜態成員 Equality(ServerGroup. . :: . .Key, Object) Determines whether the object identified by a Object is the same as the object identified by a ServerGroup..::..Key.
公用運算子靜態成員 Inequality(Object, ServerGroup. . :: . .Key) Determines whether the object identified by a Object is different than the object identified by a RegisteredServersStore..::..Key.
公用運算子靜態成員 Inequality(ServerGroup. . :: . .Key, ServerGroup. . :: . .Key) Determines whether the objects identified by two ServerGroup..::..Key objects are different.
公用運算子靜態成員 Inequality(ServerGroup. . :: . .Key, Object) Determines whether the object identified by a Object is different than the object identified by a RegisteredServersStore..::..Key.

上層

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

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