XFileData.Lock Method

Language:

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

Accesses the .x file data.

Definition

Visual Basic .NET Public Function Lock() As GraphicsStream
C# public GraphicsStream Lock();
Managed C++ public: GraphicsStream* Lock();
JScript .NET public function Lock() : GraphicsStream;

Return Value

Microsoft.DirectX.GraphicsStream . A GraphicsStream object that contains the locked data buffer.

Remarks

You can make multiple lock calls. However, you must ensure that the number of lock calls matches the number of unlock calls.

Exception GraphicsException.ErrorCode Cause
GraphicsException XFileErrorCodes.BadValue A variable is outside its expected range; typically returned when an object is invalid.


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

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