LoadModelResult.GetLoadedResourceOfType(ObjectType) 方法

定义

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

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

参数

type
ObjectType

请求的类型必须指定有效的资源类型,例如 MeshMaterial

返回

注解

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

适用于