LoadModelResult.GetLoadedResourceOfType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetLoadedResourceOfType(ObjectType) |
Retrieves all resources of the given type that were loaded as part of this model. |
GetLoadedResourceOfType(ObjectType, List<ResourceBase>) |
GetLoadedResourceOfType(ObjectType)
Retrieves all resources of the given type that were loaded as part of this model.
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)
Parameters
- type
- ObjectType
The requested type must specify a valid resource type such as Mesh or Material.
Returns
Remarks
A InvalidType error occurs if 'type' is outside the specified range.
Applies to
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))
Parameters
- type
- ObjectType
- resultList
- List<ResourceBase>