GrainExtensions.GetPrimaryKey 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
GetPrimaryKey(IAddressable, String) |
Returns the Guid representation of a grain primary key. |
GetPrimaryKey(IGrain, String) | |
GetPrimaryKey(IGrain) | |
GetPrimaryKey(IAddressable) |
Returns the Guid representation of a grain primary key. |
GetPrimaryKey(IAddressable, String)
- Source:
- GrainExtensions.cs
Returns the Guid representation of a grain primary key.
public static Guid GetPrimaryKey (this Orleans.Runtime.IAddressable grain, out string keyExt);
static member GetPrimaryKey : Orleans.Runtime.IAddressable * string -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IAddressable, ByRef keyExt As String) As Guid
Parameters
- grain
- IAddressable
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.
Exceptions
The provided grain does not have a Guid-based key.
Applies to
GetPrimaryKey(IGrain, String)
- Source:
- GrainExtensions.cs
public static Guid GetPrimaryKey (this Orleans.IGrain grain, out string keyExt);
static member GetPrimaryKey : Orleans.IGrain * string -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IGrain, ByRef keyExt As String) As Guid
Parameters
- grain
- IGrain
- keyExt
- String
Returns
Applies to
GetPrimaryKey(IGrain)
- Source:
- GrainExtensions.cs
public static Guid GetPrimaryKey (this Orleans.IGrain grain);
static member GetPrimaryKey : Orleans.IGrain -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IGrain) As Guid
Parameters
- grain
- IGrain
Returns
Applies to
GetPrimaryKey(IAddressable)
- Source:
- GrainExtensions.cs
Returns the Guid representation of a grain primary key.
public static Guid GetPrimaryKey (this Orleans.Runtime.IAddressable grain);
static member GetPrimaryKey : Orleans.Runtime.IAddressable -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IAddressable) As Guid
Parameters
- grain
- IAddressable
The grain to find the primary key for.
Returns
A Guid representing the primary key for this grain.
Exceptions
The provided grain does not have a Guid-based key.