Share via


IInteropStreamContract.UnlockRegion Method

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

Removes the access restriction from a range of bytes that was previously restricted by using the LockRegion method.

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 UnlockRegion ( _
    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.UnlockRegion(offset, byteLength, _
    lockType)
void UnlockRegion(
    long offset,
    long byteLength,
    int lockType
)
void UnlockRegion(
    long long offset, 
    long long byteLength, 
    int lockType
)
function UnlockRegion(
    offset : long, 
    byteLength : long, 
    lockType : int
)

Parameters

  • offset
    Type: System.Int64

    The byte offset for the beginning of the range.

  • byteLength
    Type: System.Int64

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

  • lockType
    Type: System.Int32

    The access restrictions previously placed on the range.

Remarks

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

See Also

Reference

IInteropStreamContract Interface

IInteropStreamContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace