XFileData.Lock Method

Language:

Accesses the .x file data.

Definition

Visual Basic Public Function Lock() As GraphicsStream
C# public GraphicsStream Lock();
C++ public:
GraphicsStreamLock();
JScript 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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