Volume.LockBox Method |
Language: |
Locks a box on a volume resource.
Visual Basic Public Function LockBox( _
ByVal typeLock As Type, _
ByVal box As Box, _
ByVal flags As LockFlags, _
ByVal ranks() As Integer _
) As ArrayC# public Array LockBox(
Type typeLock,
Box box,
LockFlags flags,
int[] ranks
);C++ public:
Array^ LockBox(
Type^ typeLock,
Box box,
LockFlags flags,
array<int>^ ranks
);JScript public function LockBox(
typeLock : Type,
box : Box,
flags : LockFlags,
ranks : int[]
) : Array;
typeLock System.Type
Value that specifies the Type of the lock.box Microsoft.DirectX.Direct3D.Box
A Box object that represents the box to lock.flags Microsoft.DirectX.Direct3D.LockFlags
Combination of zero or more LockFlags that describe the type of lock to perform. See Remarks.ranks System.Int32[]
Array of one to three Int32 values that indicate the dimensions of the returned array. The maximum number of ranks allowed is three.
System.Array
An Array that represents the locked box region.
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
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center