GrainIdKeyExtensions.GetGuidKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetGuidKey(GrainId) |
Returns the Guid representation of a grain primary key. |
GetGuidKey(GrainId, String) |
Returns the Guid representation of a grain primary key. |
GetGuidKey(GrainId)
Returns the Guid representation of a grain primary key.
public static Guid GetGuidKey (this Orleans.Runtime.GrainId grainId);
static member GetGuidKey : Orleans.Runtime.GrainId -> Guid
<Extension()>
Public Function GetGuidKey (grainId As GrainId) As Guid
Parameters
- grainId
- GrainId
The grain to find the primary key for.
Returns
A Guid representing the primary key for this grain.
Applies to
GetGuidKey(GrainId, String)
Returns the Guid representation of a grain primary key.
public static Guid GetGuidKey (this Orleans.Runtime.GrainId grainId, out string? keyExt);
static member GetGuidKey : Orleans.Runtime.GrainId * string -> Guid
<Extension()>
Public Function GetGuidKey (grainId As GrainId, ByRef keyExt As String) As Guid
Parameters
- grainId
- GrainId
The grain to find the primary key for.
- 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 Guid representing the primary key for this grain.