Resource.Priority Property (Microsoft.DirectX.Direct3D)
Retrieves or sets the priority for the current resource.
Definition
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);
Property Value
System.Int32
An Int32 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
The method call is invalid. For example, a method's parameter might contain an invalid value.
Applies To