共用方式為


NamedKey<T> 類別

Represents the single string name key for an instance class.

繼承階層

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Sdk.Sfc.NamedKey<T>

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

語法

'宣告
Public Class NamedKey(Of T As SfcInstance) _
    Inherits SfcKey _
    Implements IEquatable(Of NamedKey(Of T))
'用途
Dim instance As NamedKey(Of T)
public class NamedKey<T> : SfcKey, IEquatable<NamedKey<T>>
where T : SfcInstance
generic<typename T>
where T : SfcInstance 
public ref class NamedKey : public SfcKey, 
    IEquatable<NamedKey<T>^>
type NamedKey<'T when 'T : SfcInstance> =  
    class 
        inherit SfcKey 
        interface IEquatable<NamedKey<'T>>
    end
JScript 不支援一般類型和方法。

型別參數

  • T
    The type of the name key for an instance.

NamedKey<T> 型別公開下列成員。

建構函式

  名稱 說明
公用方法 NamedKey<T>() Initializes a new instance of the NamedKey<T> class.
公用方法 NamedKey<T>(IDictionary<String, Object>) Initializes a new instance of the NamedKey<T> class from a field dictionary.
公用方法 NamedKey<T>(String) Initializes a new instance of the NamedKey<T> class from a string.
公用方法 NamedKey<T>(NamedKey<T>) Initializes a new instance of the NamedKey<T> class from another name key.

上層

屬性

  名稱 說明
公用屬性 InstanceType Gets the instance type which the key represents. (覆寫 SfcKey.InstanceType。)
公用屬性 Name Gets the name key value.
受保護的屬性 UrnName Gets the Urn level name corresponding to the instance type which the key represents.

上層

方法

  名稱 說明
公用方法 Equals(Object) Compares a name key to the specified key for value of equality. (覆寫 SfcKey.Equals(Object)。)
公用方法 Equals(NamedKey<T>) Compares a name key to the specified key for value of equality.
公用方法 Equals(SfcKey) Compares a name key to the key for value of equality. (覆寫 SfcKey.Equals(SfcKey)。)
公用方法靜態成員 Equals(Object, Object) Compares the two keys for value of equality.
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode Returns a hash code for the key. (覆寫 SfcKey.GetHashCode()。)
公用方法 GetType (繼承自 Object。)
公用方法 GetUrnFragment Returns the Urn level fragment which obtains its name from the key name property by default. (覆寫 SfcKey.GetUrnFragment()。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString Returns the string value for the key. (覆寫 SfcKey.ToString()。)

上層

運算子

  名稱 說明
公用運算子靜態成員 Equality Indicates whether the two keys are equal.
公用運算子靜態成員 Inequality Indicates whether the two keys are not equal.

上層

執行緒安全性

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

請參閱

參考

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間