Condividi tramite


IGrainReferenceRuntime.Cast(IAddressable, Type) Metodo

Definizione

Converte l'oggetto fornito nell'oggetto specificato graininterfaceType.

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

Parametri

grain
IAddressable

Grana.

interfaceType
Type

Tipo di interfaccia risultante.

Restituisce

Riferimento a grain cui implementa interfaceType.

Si applica a