共用方式為


LoadModelResult.GetLoadedResourceOfType 方法

定義

多載

GetLoadedResourceOfType(ObjectType)

擷取指定類型的所有資源,這些資源已載入此模型。

GetLoadedResourceOfType(ObjectType, List<ResourceBase>)

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' 超出指定的範圍,就會發生錯誤。

適用於

GetLoadedResourceOfType(ObjectType, List<ResourceBase>)

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

參數

type
ObjectType
resultList
List<ResourceBase>

適用於