InstanceKey InstanceKey InstanceKey InstanceKey Class

定义

表示一个实例键,并包含与此实例键关联的标识符和元数据。Represents an instance key and contains an identifier and metadata associated with the instance key. 实例键可用作实例的非唯一别名。An instance key acts as a non-unique alias for an instance.

public ref class InstanceKey
[System.Runtime.Serialization.DataContract]
public class InstanceKey
type InstanceKey = class
Public Class InstanceKey
继承
InstanceKeyInstanceKeyInstanceKeyInstanceKey
派生
属性

构造函数

InstanceKey(Guid) InstanceKey(Guid) InstanceKey(Guid) InstanceKey(Guid)

使用与传递的实例键关联的 GUID 初始化 InstanceKey 类的实例。Initializes an instance of the InstanceKey class using the GUID associated with the instance key passed.

InstanceKey(Guid, IDictionary<XName,InstanceValue>) InstanceKey(Guid, IDictionary<XName,InstanceValue>) InstanceKey(Guid, IDictionary<XName,InstanceValue>) InstanceKey(Guid, IDictionary<XName,InstanceValue>)

使用与此实例键关联的 GUID 和元数据初始化 InstanceKey 类的实例。Initializes an instance of the InstanceKey class using the GUID and metadata associated with the instance key.

属性

InvalidKey InvalidKey InvalidKey InvalidKey

返回一个无效的 InstanceKey 对象。Returns an invalid InstanceKey object. 无效的 InstanceKey 对象的 Value 属性具有 Guid.Empty 值,IsValid 属性具有 false 值。An invalid InstanceKey object has Guid.Empty value for the Value property and a false value for the IsValid property.

IsValid IsValid IsValid IsValid

获取一个指示此实例键是否有效的值。Gets a value that indicates whether the instance key is valid.

Metadata Metadata Metadata Metadata

获取包含与实例键关联的元数据的字典。Gets the dictionary that contains metadata associated with the instance key.

Value Value Value Value

获取与当前实例键关联的 GUID 值。Gets the GUID value associated with the current instance key.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将与当前对象(存储在 Value 属性中)关联的 GUID 和与 InstanceKey 对象关联的 GUID 进行比较。Compares the GUID associated with the current object (stored in the Value property) with the GUID associated with the InstanceKey object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

为当前 InstanceKey 对象的 GUID(存储在 Value 属性中)返回一个唯一的哈希代码。Returns a unique hash code for the current InstanceKey object's GUID (stored in the Value property).

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于