Microsoft DirectX 9.0 SDK Update (October 2004)

Resource.Priority Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the priority for the current resource.

Definition

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);

Property Value

System.Int32 . An Int32 Leave Site that represents the current priority of the resource, or a value to set that specifies the new priority for the resource.

This property is read/write. 

Remarks

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.

Applies To

BaseTexture, IndexBuffer, Surface, VertexBuffer

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center