GrainExtensions.GetGrainId(IAddressable) 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.
Returns the grain id corresponding to the provided grain.
public static Orleans.Runtime.GrainId GetGrainId (this Orleans.Runtime.IAddressable grain);
static member GetGrainId : Orleans.Runtime.IAddressable -> Orleans.Runtime.GrainId
<Extension()>
Public Function GetGrainId (grain As IAddressable) As GrainId
Parameters
- grain
- IAddressable
The grain
Returns
The grain id corresponding to the provided grain.
Exceptions
The provided value has the wrong type or has no id.