Прочетете на английски Редактиране

Споделяне чрез


GrainIdKeyExtensions.GetIntegerKey Method

Definition

Overloads

GetIntegerKey(GrainId)

Returns the Int64 representation of a grain key.

GetIntegerKey(GrainId, String)

Returns the Int64 representation of a grain key.

GetIntegerKey(GrainId)

Returns the Int64 representation of a grain key.

C#
public static long GetIntegerKey(this Orleans.Runtime.GrainId grainId);

Parameters

grainId
GrainId

The grain to find the key for.

Returns

A Int64 representing the key for this grain.

Applies to

.NET Orleans 9.0.0 и други версии
Продукт Версии
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

GetIntegerKey(GrainId, String)

Returns the Int64 representation of a grain key.

C#
public static long GetIntegerKey(this Orleans.Runtime.GrainId grainId, out string? keyExt);

Parameters

grainId
GrainId

The grain id.

keyExt
String

The output parameter to return the extended key part of the grain primary key, if extended primary key was provided for that grain.

Returns

A long representing the key for this grain.

Applies to

.NET Orleans 9.0.0 и други версии
Продукт Версии
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0