IStream.LockRegion Method (Int64, Int64, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

libOffset
Type: System.Int64

The byte offset for the beginning of the range.

cb
Type: System.Int64

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

dwLockType
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
Show: