You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Flush any buffers before epand or shrink the stream.
* If the specified value is less than the current length of the stream, the current position is moved to the last byte of the stream.
/// <exception cref="NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.</exception>
609
+
/// <exception cref="NotSupportedException">The stream does not support both writing and seeking.</exception>
610
610
/// <exception cref="ObjectDisposedException">Methods were called after the stream was closed.</exception>
611
611
/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> must be greater than zero.</exception>
612
+
/// <remarks>
613
+
/// <para>
614
+
/// Buffers are first flushed.
615
+
/// </para>
616
+
/// <para>
617
+
/// If the specified value is less than the current length of the stream, the stream is truncated and - if the
618
+
/// current position is greater than the new length - the current position is moved to the last byte of the stream.
619
+
/// </para>
620
+
/// <para>
621
+
/// If the given value is greater than the current length of the stream, the stream is expanded and the current
622
+
/// position remains the same.
623
+
/// </para>
624
+
/// </remarks>
612
625
publicoverridevoidSetLength(longvalue)
613
626
{
614
627
if(value<0)
@@ -622,11 +635,23 @@ public override void SetLength(long value)
622
635
if(!CanSeek)
623
636
thrownewNotSupportedException("Seek is not supported.");
0 commit comments