Resource.Priority Property |
Language: |
Retrieves or sets the priority for the current resource.
Visual Basic Public Property Priority As Integer C# public int Priority { get; set; } C++ public:
property int Priority {
int get();
void set(int value);
}JScript public function get Priority() : int
public function set Priority(int);
System.Int32
This property is read/write.
An Int32 that represents the current priority of the resource, or a value to set that specifies the new priority for the resource.
Resource.Priority is used for priority control of managed resources. It returns 0 on nonmanaged resources.
Priorities are used to determine when managed resources should be removed from memory. A resource assigned a low priority is removed before one with a high priority. If two resources have the same priority, the one that was used more recently is kept in memory, while the other is removed. Managed resources have a default priority of 0.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
BaseTexture, IndexBuffer, Surface, VertexBuffer
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center