LoadModelResult.GetLoadedObjectsOfType 方法

定义

重载

GetLoadedObjectsOfType(ObjectType)

检索作为此模型的一部分加载的给定类型的所有对象。

GetLoadedObjectsOfType(ObjectType, List<ObjectBase>)

GetLoadedObjectsOfType(ObjectType)

检索作为此模型的一部分加载的给定类型的所有对象。

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::Azure::RemoteRendering::ObjectBase ^> ^ GetLoadedObjectsOfType(Microsoft::Azure::RemoteRendering::ObjectType type);
public System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ObjectBase> GetLoadedObjectsOfType (Microsoft.Azure.RemoteRendering.ObjectType type);
member this.GetLoadedObjectsOfType : Microsoft.Azure.RemoteRendering.ObjectType -> System.Collections.Generic.IReadOnlyList<Microsoft.Azure.RemoteRendering.ObjectBase>
Public Function GetLoadedObjectsOfType (type As ObjectType) As IReadOnlyList(Of ObjectBase)

参数

type
ObjectType

请求的类型必须指定有效的对象类型,例如 EntityMeshComponent

返回

注解

InvalidType如果“type”超出指定范围,则会发生错误。

适用于

GetLoadedObjectsOfType(ObjectType, List<ObjectBase>)

public:
 void GetLoadedObjectsOfType(Microsoft::Azure::RemoteRendering::ObjectType type, System::Collections::Generic::List<Microsoft::Azure::RemoteRendering::ObjectBase ^> ^ resultList);
public void GetLoadedObjectsOfType (Microsoft.Azure.RemoteRendering.ObjectType type, System.Collections.Generic.List<Microsoft.Azure.RemoteRendering.ObjectBase> resultList);
member this.GetLoadedObjectsOfType : Microsoft.Azure.RemoteRendering.ObjectType * System.Collections.Generic.List<Microsoft.Azure.RemoteRendering.ObjectBase> -> unit
Public Sub GetLoadedObjectsOfType (type As ObjectType, resultList As List(Of ObjectBase))

参数

type
ObjectType
resultList
List<ObjectBase>

适用于