Volume.LockBox(LockFlags) Method (Microsoft.DirectX.Direct3D)
Locks a box on a volume resource.
Definition
Visual Basic Public Function LockBox( _
ByVal flags As LockFlags _
) As GraphicsStreamC# public GraphicsStream LockBox(
LockFlags flags
);C++ public:
GraphicsStream^ LockBox(
LockFlags flags
);JScript public function LockBox(
flags : LockFlags
) : GraphicsStream;
Parameters
flags Microsoft.DirectX.Direct3D.LockFlags
Combination of zero or more LockFlags that describe the type of lock to perform. See Remarks.
Return Value
Microsoft.DirectX.GraphicsStream
A GraphicsStream that represents the locked box region.
Remarks
The valid lock flags for this method are:
For performance reasons, dirty regions are recorded only for level zero of a texture. Dirty regions are automatically recorded when Volume.LockBox is called without LockFlags.NoDirtyUpdate or LockFlags.ReadOnly. For more information, see Device.UpdateTexture.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.