eDriven Framework API
GetComponent<(Of <(<'T>)>)> Method (instantiateIfNotFound)
Namespaces ► eDriven.Core ► Framework ► GetComponent<(Of <<'(T>)>>)(Boolean)
eDriven Framework API
Gets the component by its type
Declaration Syntax

C# | Visual Basic | Visual C++

    public static Component GetComponent<T>(
    	bool instantiateIfNotFound
    )
    where T : Component

    Public Shared Function GetComponent(Of T As Component) ( _
    	instantiateIfNotFound As Boolean _
    ) As Component

    public:
    generic<typename T>
    where T : Component
    static Component^ GetComponent(
    	bool instantiateIfNotFound
    )

Generic Template Parameters

T

Parameters

instantiateIfNotFound (Boolean)
  If component not found on the framework object, should I instantiate a new component and stick it in?

Return Value

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)