XFileData.Lock() Method (Microsoft.DirectX.Direct3D)
Accesses the .x file data.
Definition
Visual Basic Public Function Lock() As GraphicsStream C# public GraphicsStream Lock(); C++ public:
GraphicsStream^ Lock();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.