![]() |
![]() |
![]() |
Resource.Priority Property |
Language: |
Retrieves or sets the priority for the current resource.
Visual Basic .NET Public Property Priority As Integer C# public int Priority { get; set; } Managed C++ public: __property int get_Priority();
public: __property void set_Priority(int);JScript .NET public function get Priority() : int
public function set Priority(int);
System.Int32 . An Int32
This property is read/write.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
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center