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 命名空间