Aracılığıyla paylaş


Entity.FindComponentOfType Yöntem

Tanım

Aşırı Yüklemeler

FindComponentOfType(ObjectType)

Bu varlığa bağlı verilen türde bir bileşen bulmaya çalışır.

FindComponentOfType<T>()

Bu Varlıkta bir türün bileşenini bulun.

FindComponentOfType(ObjectType)

Bu varlığa bağlı verilen türde bir bileşen bulmaya çalışır.

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

Parametreler

type
ObjectType

Aranacak bileşen türü, örneğin MeshComponent.

Döndürülenler

Bulunursa bileşen, aksi takdirde null

Açıklamalar

Her bir varlığa her bileşen türünün yalnızca bir örneği eklenebilir. Bu nedenle, bu işlev tek bir sonuç döndürür veya yoksa null. Bileşenler için tam varlık alt ağacında arama yapmanız gerekiyorsa FindComponentsOfTypeInHierarchy(ObjectType, Int32) işlevini kullanın.

Şunlara uygulanır

FindComponentOfType<T>()

Bu Varlıkta bir türün bileşenini bulun.

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

Tür Parametreleri

T

Döndürülenler

T

Bulunursa bileşen, aksi takdirde null

Şunlara uygulanır