MultiBufferMemoryStream.SetLength Method

Windows Runtime Azure Storage Client Library

Sets the length of the current stream.

Namespace: Microsoft.WindowsAzure.Storage.Core
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As MultiBufferMemoryStream
Dim value As Long

instance.SetLength(value)

Syntax

Visual Basic
Public Overrides Sub SetLength ( _
	value As Long _
)
C#
public override void SetLength (
	long value
)
C++
public:
virtual void SetLength (
	long long value
) override
J#
public void SetLength (
	long value
)
JScript
public override function SetLength (
	value : long
)

Parameters

value

The desired length of the current stream in bytes.

Exceptions

Exception typeCondition
ArgumentOutOfRangeException

If the value is negative.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also