|
612 | 612 | <Docs>
|
613 | 613 | <param name="stream">The stream to write to.</param>
|
614 | 614 | <param name="encoding">The character encoding to use.</param>
|
615 |
| - <param name="bufferSize">The buffer size, in bytes.</param> |
| 615 | + <param name="bufferSize">The buffer size, in characters.</param> |
616 | 616 | <summary>Initializes a new instance of the <see cref="T:System.IO.StreamWriter" /> class for the specified stream by using the specified encoding and buffer size.</summary>
|
617 | 617 | <remarks>
|
618 | 618 | <format type="text/markdown"><![CDATA[
|
|
640 | 640 | <exception cref="T:System.ArgumentNullException">
|
641 | 641 | <paramref name="stream" /> or <paramref name="encoding" /> is <see langword="null" />.</exception>
|
642 | 642 | <exception cref="T:System.ArgumentOutOfRangeException">
|
643 |
| - <paramref name="bufferSize" /> is negative.</exception> |
| 643 | + <paramref name="bufferSize" /> is less than or equal to zero, except for -1, which is allowed in stream-based constructors to indicate the default buffer size.</exception> |
644 | 644 | <exception cref="T:System.ArgumentException">
|
645 | 645 | <paramref name="stream" /> is not writable.</exception>
|
646 | 646 | <altmember cref="T:System.Text.Encoding" />
|
|
871 | 871 | <Docs>
|
872 | 872 | <param name="stream">The stream to write to.</param>
|
873 | 873 | <param name="encoding">The character encoding to use.</param>
|
874 |
| - <param name="bufferSize">The buffer size, in bytes.</param> |
| 874 | + <param name="bufferSize">The buffer size, in characters.</param> |
875 | 875 | <param name="leaveOpen">
|
876 | 876 | <see langword="true" /> to leave the stream open after the <see cref="T:System.IO.StreamWriter" /> object is disposed; otherwise, <see langword="false" />.</param>
|
877 | 877 | <summary>Initializes a new instance of the <see cref="T:System.IO.StreamWriter" /> class for the specified stream by using the specified encoding and buffer size, and optionally leaves the stream open.</summary>
|
|
899 | 899 | <exception cref="T:System.ArgumentNullException">
|
900 | 900 | <paramref name="stream" /> or <paramref name="encoding" /> is <see langword="null" />.</exception>
|
901 | 901 | <exception cref="T:System.ArgumentOutOfRangeException">
|
902 |
| - <paramref name="bufferSize" /> is negative.</exception> |
| 902 | + <paramref name="bufferSize" /> is less than or equal to zero, except for -1, which is allowed in stream-based constructors to indicate the default buffer size.</exception> |
903 | 903 | <exception cref="T:System.ArgumentException">
|
904 | 904 | <paramref name="stream" /> is not writable.</exception>
|
905 | 905 | </Docs>
|
|
967 | 967 | <param name="append">
|
968 | 968 | <see langword="true" /> to append data to the file; <see langword="false" /> to overwrite the file. If the specified file does not exist, this parameter has no effect, and the constructor creates a new file.</param>
|
969 | 969 | <param name="encoding">The character encoding to use.</param>
|
970 |
| - <param name="bufferSize">The buffer size, in bytes.</param> |
| 970 | + <param name="bufferSize">The buffer size, in characters.</param> |
971 | 971 | <summary>Initializes a new instance of the <see cref="T:System.IO.StreamWriter" /> class for the specified file on the specified path, using the specified encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file.</summary>
|
972 | 972 | <remarks>
|
973 | 973 | <format type="text/markdown"><![CDATA[
|
|
1003 | 1003 | <exception cref="T:System.ArgumentNullException">
|
1004 | 1004 | <paramref name="path" /> or <paramref name="encoding" /> is <see langword="null" />.</exception>
|
1005 | 1005 | <exception cref="T:System.ArgumentOutOfRangeException">
|
1006 |
| - <paramref name="bufferSize" /> is negative.</exception> |
| 1006 | + <paramref name="bufferSize" /> is less than or equal to zero, except for -1, which is allowed in stream-based constructors to indicate the default buffer size.</exception> |
1007 | 1007 | <exception cref="T:System.IO.IOException">
|
1008 | 1008 | <paramref name="path" /> includes an incorrect or invalid syntax for file name, directory name, or volume label syntax.</exception>
|
1009 | 1009 | <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
0 commit comments