Entity.FindComponentOfType メソッド

定義

オーバーロード

FindComponentOfType(ObjectType)

指定した型のコンポーネントの検索を試みます。

FindComponentOfType<COMPTYPE>()

このエンティティで型のコンポーネントを見つけます。

FindComponentOfType(ObjectType)

指定した型のコンポーネントの検索を試みます。

public:
 Microsoft::Azure::RemoteRendering::ComponentBase ^ FindComponentOfType(Microsoft::Azure::RemoteRendering::ObjectType type);
public Microsoft.Azure.RemoteRendering.ComponentBase FindComponentOfType (Microsoft.Azure.RemoteRendering.ObjectType type);
member this.FindComponentOfType : Microsoft.Azure.RemoteRendering.ObjectType -> Microsoft.Azure.RemoteRendering.ComponentBase
Public Function FindComponentOfType (type As ObjectType) As ComponentBase

パラメーター

type
ObjectType

検索するコンポーネントの種類。

戻り値

コンポーネントが見つかった場合は 、それ以外の場合は null

注釈

各エンティティにアタッチできるのは、各コンポーネントの種類のインスタンスを 1 つだけです。 したがって、この関数は 1 つの結果を返すか null、見つからない場合は を返します。

適用対象

FindComponentOfType<COMPTYPE>()

このエンティティで型のコンポーネントを見つけます。

public:
generic <typename COMPTYPE>
 where COMPTYPE : Microsoft::Azure::RemoteRendering::ComponentBase COMPTYPE FindComponentOfType();
public COMPTYPE FindComponentOfType<COMPTYPE> () where COMPTYPE : Microsoft.Azure.RemoteRendering.ComponentBase;
member this.FindComponentOfType : unit -> 'COMPTYPE (requires 'COMPTYPE :> Microsoft.Azure.RemoteRendering.ComponentBase)
Public Function FindComponentOfType(Of COMPTYPE As ComponentBase) () As COMPTYPE

型パラメーター

COMPTYPE

戻り値

COMPTYPE

コンポーネントが見つかった場合は 、それ以外の場合は null

適用対象