Redagować

Udostępnij przez


GrainTypeSharedContext.GetComponent Method

Definition

Overloads

Name Description
GetComponent(Type)

Gets a component.

GetComponent<TComponent>()

Gets a component.

GetComponent(Type)

Gets a component.

public object? GetComponent(Type componentType);
member this.GetComponent : Type -> obj
Public Function GetComponent (componentType As Type) As Object

Parameters

componentType
Type

The type of the component.

Returns

The component with the specified type.

Applies to

GetComponent<TComponent>()

Gets a component.

public TComponent? GetComponent<TComponent>();
member this.GetComponent : unit -> 'Component
Public Function GetComponent(Of TComponent) () As TComponent

Type Parameters

TComponent

The type specified in the corresponding SetComponent<TComponent>(TComponent) call.

Returns

TComponent

Applies to