GrainTypeSharedContext.SetComponent<TComponent>(TComponent) 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.
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