Share via


XFileData Class (Microsoft.DirectX.Direct3D)

Builds or accesses the immediate hierarchy of a data object.

Definition

Visual Basic NotInheritable Public Class XFileData
    Inherits MarshalByRefObjectLeave Site
    Implements IDisposableLeave Site
C# public sealed class XFileData : MarshalByRefObjectLeave Site, IDisposableLeave Site
C++ public ref class XFileData sealed : MarshalByRefObjectLeave Site, IDisposableLeave Site
JScript public final class XFileData extends MarshalByRefObjectLeave Site implements IDisposableLeave Site

Members Table

The following table lists the members exposed by the object.

Events

Event Description
Disposing Occurs when the Dispose method is called or when the XFileData object is finalized and collected by the garbage collector of the .NET common language runtime.

Methods

Method Description
Dispose Immediately releases the unmanaged resources used by the XFileData object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
Finalize Allows the XFileData object to free resources before it is destroyed by the garbage collector.
GetChild Retrieves an XFileData child object in this XFileData object.
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.
GetXFile Retrieves an XFile instance for this XFileData object.
Lock Accesses the .x file data.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
raise_Disposing Raises the Microsoft.DirectX.Direct3D.XFileData.Disposing event when called from within a derived class.
SetData Sets a range of data.
Unlock Ends access to the GraphicsStream object returned by XFileData.Lock.
UpdateUnmanagedPointer Updates the unmanaged pointer for this XFileData object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.
XFileData Initializes a new instance of the XFileData class.

Properties

Property Description
Disposed Gets a value that indicates whether the object is disposed.
Id Retrieves the GUID of this file data object.
IsReference Indicates whether this file data object is a reference object that points to another child data object.
Name Retrieves the name of this file data object.
NumberChildren Retrieves the number of children in this file data object.
Type Retrieves the globally unique identifier (GUID) of an object's template.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) ID3DXFileData interface pointer.

Inheritance Hierarchy

ObjectLeave Site

MarshalByRefObjectLeave Site

XFileData

Remarks

Template restrictions determine the hierarchy of data objects. Data types allowed by the template are called optional members. While optional members are not required, an object might miss important information without them. These members, which are saved as child members of the data object, can be additional data objects, references to earlier data objects, or binary objects.

The object should be disposed immediately when it is no longer needed.

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll)
Strong Name Microsoft.DirectX.Direct3DX,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492