Share via


InstanceKey 构造函数

定义

初始化 InstanceKey 类的实例。

重载

InstanceKey(Guid)

使用与传递的实例键关联的 GUID 初始化 InstanceKey 类的实例。

InstanceKey(Guid, IDictionary<XName,InstanceValue>)

使用与此实例键关联的 GUID 和元数据初始化 InstanceKey 类的实例。

InstanceKey(Guid)

使用与传递的实例键关联的 GUID 初始化 InstanceKey 类的实例。

public:
 InstanceKey(Guid value);
public InstanceKey (Guid value);
new System.Runtime.DurableInstancing.InstanceKey : Guid -> System.Runtime.DurableInstancing.InstanceKey
Public Sub New (value As Guid)

参数

value
Guid

与此实例键关联的 GUID。 不得是 Guid.Empty。

适用于

InstanceKey(Guid, IDictionary<XName,InstanceValue>)

使用与此实例键关联的 GUID 和元数据初始化 InstanceKey 类的实例。

public:
 InstanceKey(Guid value, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ metadata);
public InstanceKey (Guid value, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> metadata);
new System.Runtime.DurableInstancing.InstanceKey : Guid * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> -> System.Runtime.DurableInstancing.InstanceKey
Public Sub New (value As Guid, metadata As IDictionary(Of XName, InstanceValue))

参数

value
Guid

与此实例键关联的 GUID。 不得是 Guid.Empty。

metadata
IDictionary<XName,InstanceValue>

包含与实例键或 null 关联的元数据的字典。

适用于