IGrainReferenceRuntime.Cast(IAddressable, Type) 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.
Converts the provided grain
to the provided interfaceType
.
public object Cast (Orleans.Runtime.IAddressable grain, Type interfaceType);
abstract member Cast : Orleans.Runtime.IAddressable * Type -> obj
Public Function Cast (grain As IAddressable, interfaceType As Type) As Object
Parameters
- grain
- IAddressable
The grain.
- interfaceType
- Type
The resulting interface type.
Returns
A reference to grain
which implements interfaceType
.