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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。