Compartir a través de


IGrainReferenceRuntime.Cast(IAddressable, Type) Método

Definición

Convierte el proporcionado grain en el proporcionado 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

Parámetros

grain
IAddressable

El grano.

interfaceType
Type

Tipo de interfaz resultante.

Devoluciones

Referencia a la grain que implementa interfaceType.

Se aplica a