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 type | Condition |
---|
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
See Also