Share via


IInteropStreamContract.LockRegion Method

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

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

Namespace:  Microsoft.VisualStudio.Tools.Applications.Contract
Assembly:  Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)

Syntax

'Declaration
Sub LockRegion ( _
    offset As Long, _
    byteLength As Long, _
    lockType As Integer _
)
'Usage
Dim instance As IInteropStreamContract 
Dim offset As Long 
Dim byteLength As Long 
Dim lockType As Integer

instance.LockRegion(offset, byteLength, _
    lockType)
void LockRegion(
    long offset,
    long byteLength,
    int lockType
)
void LockRegion(
    long long offset, 
    long long byteLength, 
    int lockType
)
function LockRegion(
    offset : long, 
    byteLength : long, 
    lockType : int
)

Parameters

  • byteLength
    Type: System.Int64

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

  • lockType
    Type: System.Int32

    The requested restrictions to accessing the range.

Remarks

Delegates the call to the IStream.LockRegion method of the internal copy of the stream object.

See Also

Reference

IInteropStreamContract Interface

IInteropStreamContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace