XFileManager.FromFile Method

Language:

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

Creates an XFile object used to read a .x file.

Definition

Visual Basic .NET Public Function FromFile( _
    ByVal filename As String _
) As XFile
C# public XFile FromFile(
    string filename
);
Managed C++ public: XFile* FromFile(
    String *filename
);
JScript .NET public function FromFile(
    filename : String
) : XFile;

Parameters

filename System.String. The filename of the .x file to read.

Return Value

Microsoft.DirectX.Direct3D.XFile . A newly created XFile object to read the .x file.

Remarks

After using this method, use one of the XFile methods to retrieve a data object.

Exception GraphicsException.ErrorCode Cause
GraphicsException XFileErrorCodes.BadValue A variable is outside its expected range; typically returned when an object is invalid.
XFileErrorCodes.ParseError Data stream could not be parsed.


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

Feedback? Please provide us with your comments on this topic.