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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。