Microsoft DirectX 9.0 SDK Update (October 2004)

Resource Class

Language:

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

Queries and prepares resources.

Definition

Visual Basic .NET MustInherit Public Class Resource
   Inherits MarshalByRefObject 
C# public abstract class Resource : MarshalByRefObject
Managed C++ public __gc __abstract class Resource  : public MarshalByRefObject
JScript .NET public abstract class Resource extends MarshalByRefObject

Members Table

Method Description
Dispose Immediately releases the unmanaged resources used by the Resource object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
FreePrivateData Frees the specified private data associated with the current resource.
GetHashCode Returns the hash code for the current instance.
GetObjectByValue This member supports the infrastructure for Microsoft® DirectX® 9.0 for Managed Code and is not intended to be used directly from your code.
GetPrivateData Copies the private data associated with a resource to a buffer.
static (Shared in Visual Basic .NET) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic .NET) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
PreLoad Preloads a managed resource.
Resource Initializes a new instance of the Resource class.
SetPriority Assigns the resource-management priority for the current resource.
SetPrivateData Associates data with the resource that is intended for use by the application. Data is passed by value, and multiple sets of data can be associated with a single resource.
UpdateUnmanagedPointer Updates the unmanaged pointer for this Resource object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.
Property Description
Device Retrieves the device associated with a resource.
Priority Retrieves or sets the priority for the current resource.
Type Retrieves the type of a resource.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) IDirect3DResource9 interface pointer.

Inheritance Hierarchy

Object Leave Site
MarshalByRefObject Leave Site

Remarks

To create a texture resource, use one of the following objects.

To create a geometry-oriented resource, call one of the following methods.

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 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