Share via


IInteropStreamContract.SetSize Method

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

Changes the size of the stream object.

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 SetSize ( _
    newSize As Long _
)
'Usage
Dim instance As IInteropStreamContract 
Dim newSize As Long

instance.SetSize(newSize)
void SetSize(
    long newSize
)
void SetSize(
    long long newSize
)
function SetSize(
    newSize : long
)

Parameters

  • newSize
    Type: System.Int64

    The new size of the stream as a number of bytes.

Remarks

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

See Also

Reference

IInteropStreamContract Interface

IInteropStreamContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace