Dela via


Entity.FindComponentsOfTypeInHierarchy(ObjectType, Int32) Metod

Definition

Passerar entitetens underdiagram (inklusive den här entiteten) och returnerar en lista över alla komponenter av viss typ som finns i diagrammet.

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)

Parametrar

type
ObjectType

Komponenttypen som ska sökas efter, till exempel MeshComponent.

maxResultCount
Int32

Om värdet är större än 0 anger det maximala antalet returnerade element. För negativa värden eller 0 tillämpas ingen storleksgräns.

Returer

Matrisen med hittade element eller en tom matris.

Kommentarer

Om du bara behöver det första resultatet bör maxResultCount anges till 1, så att sökfunktionen kan returneras tidigt.

Gäller för