System.Runtime.InteropServices.UCOMIStream.LockRegion Method

Restricts access to a specified range of bytes in the stream.

Syntax

public void LockRegion (long libOffset, long cb, int dwLockType)

Parameters

libOffset
The byte offset for the beginning of the range.
cb
The length of the range, in bytes, to restrict.
dwLockType
The requested restrictions on accessing the range.

Remarks

For more information, please see the existing documentation for IStream::LockRegion in the MSDN library.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0