IStream.LockRegion Method (Int64, Int64, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void LockRegion(
	long libOffset,
	long cb,
	int dwLockType


Type: System.Int64

The byte offset for the beginning of the range.

Type: System.Int64

The length of the range, in bytes, to restrict.

Type: System.Int32

The requested restrictions on accessing the range.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top