GrainIdKeyExtensions.TryGetIntegerKey(GrainId, Int64, String) Method

Definition

Tries to parse the Key portion of the provided grain id to extract a Int64 key and String key extension.

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

Parameters

grainId
GrainId

The grain id.

key
Int64

The key.

keyExt
String

The key extension.

Returns

true when the grain id was successfully parsed, false otherwise.

Applies to

Product Versions
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0