Edytuj

Udostępnij za pośrednictwem


GrainTypeSharedContext.SetComponent<TComponent>(TComponent) Method

Definition

Registers a component.

public void SetComponent<TComponent> (TComponent? instance);
member this.SetComponent : 'Component -> unit
Public Sub SetComponent(Of TComponent) (instance As TComponent)

Type Parameters

TComponent

The type which can be used as a key to GetComponent<TComponent>().

Parameters

instance
TComponent

Applies to