Aracılığıyla paylaş


Entity.FindComponentsOfTypeInHierarchy(ObjectType, Int32) Yöntem

Tanım

Varlığın alt grafiğini (bu varlık dahil) çapraz geçişler ve grafikte bulunan belirli türdeki tüm bileşenlerin listesini döndürür.

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::Azure::RemoteRendering::ComponentBase ^> ^ FindComponentsOfTypeInHierarchy(Microsoft::Azure::RemoteRendering::ObjectType type, int maxResultCount);
public System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ComponentBase> FindComponentsOfTypeInHierarchy (Microsoft.Azure.RemoteRendering.ObjectType type, int maxResultCount);
member this.FindComponentsOfTypeInHierarchy : Microsoft.Azure.RemoteRendering.ObjectType * int -> System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ComponentBase>
Public Function FindComponentsOfTypeInHierarchy (type As ObjectType, maxResultCount As Integer) As IReadOnlyList(Of ComponentBase)

Parametreler

type
ObjectType

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

maxResultCount
Int32

0'dan büyükse, bu değer döndürülen öğe sayısı üst sınırını belirtir. Negatif değerler veya 0 için boyut sınırı uygulanmaz.

Döndürülenler

Bulunan öğelerin dizisi veya boş bir dizi.

Açıklamalar

Yalnızca ilk sonuca ihtiyacınız varsa, arama işlevinin erken döndürülebilmesi için maxResultCount değeri 1 olarak ayarlanmalıdır.

Şunlara uygulanır