UCOMIStream.LockRegion(Int64, Int64, Int32) 方法

定義

限制存取資料流中指定的位元組範圍。Restricts access to a specified range of bytes in the stream.

public:
 void LockRegion(long libOffset, long cb, int dwLockType);
public void LockRegion (long libOffset, long cb, int dwLockType);
abstract member LockRegion : int64 * int64 * int -> unit
Public Sub LockRegion (libOffset As Long, cb As Long, dwLockType As Integer)

參數

libOffset
Int64

範圍開頭的位元組位移。The byte offset for the beginning of the range.

cb
Int64

要限制的範圍長度,以位元組為單位。The length of the range, in bytes, to restrict.

dwLockType
Int32

對存取範圍要求的限制。The requested restrictions on accessing the range.

備註

如需詳細資訊,請參閱 MSDN library 中的 IStream::LockRegion 的現有檔。For more information, please see the existing documentation for IStream::LockRegion in the MSDN library.

適用於