Compartilhar via


IGrainReferenceRuntime.Cast(IAddressable, Type) Método

Definição

Converte o fornecido grain no fornecido 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

A granularidade.

interfaceType
Type

O tipo de interface resultante.

Retornos

Uma referência à grain qual implementa interfaceType.

Aplica-se a