1 <?xml version="1.0" encoding="utf-8"?>
7 <member name="T:System.IO.BinaryReader">
8 <summary>用特定的编码将基元数据类型读作二进制值。</summary>
9 <filterpriority>2</filterpriority>
11 <member name="M:System.IO.BinaryReader.#ctor(System.IO.Stream)">
12 <summary>基于所指定的流和特定的 UTF-8 编码,初始化 <see cref="T:System.IO.BinaryReader" /> 类的新实例。</summary>
13 <param name="input">输入流。</param>
14 <exception cref="T:System.ArgumentException">该流不支持读取,为null 或已关闭。</exception>
16 <member name="M:System.IO.BinaryReader.#ctor(System.IO.Stream,System.Text.Encoding)">
17 <summary>基于所指定的流和特定的字符编码,初始化 <see cref="T:System.IO.BinaryReader" /> 类的新实例。</summary>
18 <param name="input">输入流。</param>
19 <param name="encoding">要使用的字符编码。</param>
20 <exception cref="T:System.ArgumentException">该流不支持读取,为null 或已关闭。</exception>
21 <exception cref="T:System.ArgumentNullException">
22 <paramref name="encoding" /> 为 null。</exception>
24 <member name="M:System.IO.BinaryReader.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean)">
25 <summary>基于所提供的流和特定的字符编码,初始化 <see cref="T:System.IO.BinaryReader" /> 类的新实例,有选择性的打开流。</summary>
26 <param name="input">输入流。</param>
27 <param name="encoding">要使用的字符编码。</param>
28 <param name="leaveOpen">如果在释放 <see cref="T:System.IO.BinaryReader" /> 对象后保持流处于打开状态,则为 true;否则为 false。</param>
29 <exception cref="T:System.ArgumentException">该流不支持读取,为null 或已关闭。</exception>
30 <exception cref="T:System.ArgumentNullException">
31 <paramref name="encoding" /> 或 <paramref name="input" /> 为 null。</exception>
33 <member name="P:System.IO.BinaryReader.BaseStream">
34 <summary>公开对 <see cref="T:System.IO.BinaryReader" /> 的基础流的访问。</summary>
35 <returns>与 BinaryReader 关联的基础流。</returns>
36 <filterpriority>2</filterpriority>
38 <member name="M:System.IO.BinaryReader.Dispose">
39 <summary>释放 <see cref="T:System.IO.BinaryReader" /> 类的当前实例所使用的所有资源。</summary>
41 <member name="M:System.IO.BinaryReader.Dispose(System.Boolean)">
42 <summary>释放 <see cref="T:System.IO.BinaryReader" /> 类使用的非托管资源,并可以选择释放托管资源。</summary>
43 <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
45 <member name="M:System.IO.BinaryReader.FillBuffer(System.Int32)">
46 <summary>用从流中读取的指定字节数填充内部缓冲区。</summary>
47 <param name="numBytes">要读取的字节数。</param>
48 <exception cref="T:System.IO.EndOfStreamException">在可以读取 <paramref name="numBytes" /> 之前到达了流的末尾。</exception>
49 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
50 <exception cref="T:System.ArgumentOutOfRangeException">请求的 <paramref name="numBytes" /> 大于内部缓冲区大小。</exception>
52 <member name="M:System.IO.BinaryReader.PeekChar">
53 <summary>返回下一个可用的字符,并且不提升字节或字符的位置。</summary>
54 <returns>下一个可用的字符,或者,如果没有可用字符或者流不支持查找时为 -1。</returns>
55 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
56 <exception cref="T:System.ArgumentException">当前字符无法通过使用为该流选择的 <see cref="T:System.Text.Encoding" /> 解码到内部字符缓冲区中。</exception>
57 <filterpriority>2</filterpriority>
59 <member name="M:System.IO.BinaryReader.Read">
60 <summary>从基础流中读取字符,并根据所使用的 Encoding 和从流中读取的特定字符,提升流的当前位置。</summary>
61 <returns>输入流中的下一个字符,如果当前无可用字符则为 -1。</returns>
62 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
63 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
64 <filterpriority>2</filterpriority>
66 <member name="M:System.IO.BinaryReader.Read(System.Byte[],System.Int32,System.Int32)">
67 <summary>从字节数组中的指定点开始,从流中读取指定的字节数。</summary>
68 <returns>读入 <paramref name="buffer" /> 的字节数。如果可用的字节没有请求的那么多,此数可能小于所请求的字节数;如果到达了流的末尾,此数可能为零。</returns>
69 <param name="buffer">将数据读入的缓冲区。</param>
70 <param name="index">缓冲区中的起始点,在该处开始读入缓冲区。</param>
71 <param name="count">要读取的字节数。</param>
72 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。- 或 -要读取的解码字符数大于 <paramref name="count" />。如果 Unicode 解码器返回回退字符或代理项对,则可能发生此情况。</exception>
73 <exception cref="T:System.ArgumentNullException">
74 <paramref name="buffer" /> 为 null。</exception>
75 <exception cref="T:System.ArgumentOutOfRangeException">
76 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
77 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
78 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
79 <filterpriority>2</filterpriority>
81 <member name="M:System.IO.BinaryReader.Read(System.Char[],System.Int32,System.Int32)">
82 <summary>从字符数组中的指定点开始,从流中读取指定的字符数。</summary>
83 <returns>读入缓冲区的总字符数。如果当前可用的字节没有请求的那么多,此数可能小于所请求的字符数;如果到达了流的末尾,此数可能为零。</returns>
84 <param name="buffer">将数据读入的缓冲区。</param>
85 <param name="index">缓冲区中的起始点,在该处开始读入缓冲区。</param>
86 <param name="count">要读取的字符数。</param>
87 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。- 或 -要读取的解码字符数大于 <paramref name="count" />。如果 Unicode 解码器返回回退字符或代理项对,则可能发生此情况。</exception>
88 <exception cref="T:System.ArgumentNullException">
89 <paramref name="buffer" /> 为 null。</exception>
90 <exception cref="T:System.ArgumentOutOfRangeException">
91 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
92 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
93 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
94 <filterpriority>2</filterpriority>
96 <member name="M:System.IO.BinaryReader.Read7BitEncodedInt">
97 <summary>以压缩格式读入 32 位整数。</summary>
98 <returns>压缩格式的 32 位整数。</returns>
99 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
100 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
101 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
102 <exception cref="T:System.FormatException">流已损坏。</exception>
104 <member name="M:System.IO.BinaryReader.ReadBoolean">
105 <summary>从当前流中读取 Boolean 值,并使该流的当前位置提升 1 个字节。</summary>
106 <returns>如果字节为非零,则为 true,否则为 false。</returns>
107 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
108 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
109 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
110 <filterpriority>2</filterpriority>
112 <member name="M:System.IO.BinaryReader.ReadByte">
113 <summary>从当前流中读取下一个字节,并使流的当前位置提升 1 个字节。</summary>
114 <returns>从当前流中读取的下一个字节。</returns>
115 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
116 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
117 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
118 <filterpriority>2</filterpriority>
120 <member name="M:System.IO.BinaryReader.ReadBytes(System.Int32)">
121 <summary>从当前流中读取指定的字节数以写入字节数组中,并将当前位置前移相应的字节数。</summary>
122 <returns>包含从基础流中读取的数据的字节数组。如果到达了流的末尾,则该字节数组可能小于所请求的字节数。</returns>
123 <param name="count">要读取的字节数。此值必须为 0 或非负数字,否则将出现异常。</param>
124 <exception cref="T:System.ArgumentException">要读取的解码字符数大于 <paramref name="count" />。如果 Unicode 解码器返回回退字符或代理项对,则可能发生此情况。</exception>
125 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
126 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
127 <exception cref="T:System.ArgumentOutOfRangeException">
128 <paramref name="count" /> 为负数。</exception>
129 <filterpriority>2</filterpriority>
131 <member name="M:System.IO.BinaryReader.ReadChar">
132 <summary>从当前流中读取下一个字符,并根据所使用的 Encoding 和从流中读取的特定字符,提升流的当前位置。</summary>
133 <returns>从当前流中读取的字符。</returns>
134 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
135 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
136 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
137 <exception cref="T:System.ArgumentException">读取了一个代理项字符。</exception>
138 <filterpriority>2</filterpriority>
140 <member name="M:System.IO.BinaryReader.ReadChars(System.Int32)">
141 <summary>从当前流中读取指定的字符数,并以字符数组的形式返回数据,然后根据所使用的 Encoding 和从流中读取的特定字符,将当前位置前移。</summary>
142 <returns>包含从基础流中读取的数据的字节数组。如果到达了流的末尾,则该字符数组可能小于所请求的字符数。</returns>
143 <param name="count">要读取的字符数。</param>
144 <exception cref="T:System.ArgumentException">要读取的解码字符数大于 <paramref name="count" />。如果 Unicode 解码器返回回退字符或代理项对,则可能发生此情况。</exception>
145 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
146 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
147 <exception cref="T:System.ArgumentOutOfRangeException">
148 <paramref name="count" /> 为负数。</exception>
149 <filterpriority>2</filterpriority>
151 <member name="M:System.IO.BinaryReader.ReadDecimal">
152 <summary>从当前流中读取十进制数值,并将该流的当前位置提升十六个字节。</summary>
153 <returns>从当前流中读取的十进制数值。</returns>
154 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
155 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
156 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
157 <filterpriority>2</filterpriority>
159 <member name="M:System.IO.BinaryReader.ReadDouble">
160 <summary>从当前流中读取 8 字节浮点值,并使流的当前位置提升 8 个字节。</summary>
161 <returns>从当前流中读取的 8 字节浮点值。</returns>
162 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
163 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
164 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
165 <filterpriority>2</filterpriority>
167 <member name="M:System.IO.BinaryReader.ReadInt16">
168 <summary>从当前流中读取 2 字节有符号整数,并使流的当前位置提升 2 个字节。</summary>
169 <returns>从当前流中读取的 2 字节有符号整数。</returns>
170 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
171 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
172 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
173 <filterpriority>2</filterpriority>
175 <member name="M:System.IO.BinaryReader.ReadInt32">
176 <summary>从当前流中读取 4 字节有符号整数,并使流的当前位置提升 4 个字节。</summary>
177 <returns>从当前流中读取的 2 字节有符号整数。</returns>
178 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
179 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
180 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
181 <filterpriority>2</filterpriority>
183 <member name="M:System.IO.BinaryReader.ReadInt64">
184 <summary>从当前流中读取 8 字节有符号整数,并使流的当前位置提升 8 个字节。</summary>
185 <returns>从当前流中读取的 8 字节有符号整数。</returns>
186 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
187 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
188 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
189 <filterpriority>2</filterpriority>
191 <member name="M:System.IO.BinaryReader.ReadSByte">
192 <summary>从此流中读取 1 个有符号字节,并使流的当前位置提升 1 个字节。</summary>
193 <returns>从当前流中读取的一个有符号字节。</returns>
194 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
195 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
196 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
197 <filterpriority>2</filterpriority>
199 <member name="M:System.IO.BinaryReader.ReadSingle">
200 <summary>从当前流中读取 4 字节浮点值,并使流的当前位置提升 4 个字节。</summary>
201 <returns>从当前流中读取的 4 字节浮点值。</returns>
202 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
203 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
204 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
205 <filterpriority>2</filterpriority>
207 <member name="M:System.IO.BinaryReader.ReadString">
208 <summary>从当前流中读取一个字符串。字符串有长度前缀,一次 7 位地被编码为整数。</summary>
209 <returns>正被读取的字符串。</returns>
210 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
211 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
212 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
213 <filterpriority>2</filterpriority>
215 <member name="M:System.IO.BinaryReader.ReadUInt16">
216 <summary>使用 Little-Endian 编码从当前流中读取 2 字节无符号整数,并将流的位置提升 2 个字节。</summary>
217 <returns>从该流中读取的 2 字节无符号整数。</returns>
218 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
219 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
220 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
221 <filterpriority>2</filterpriority>
223 <member name="M:System.IO.BinaryReader.ReadUInt32">
224 <summary>从当前流中读取 4 字节无符号整数并使流的当前位置提升 4 个字节。</summary>
225 <returns>从该流中读取的 4 字节无符号整数。</returns>
226 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
227 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
228 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
229 <filterpriority>2</filterpriority>
231 <member name="M:System.IO.BinaryReader.ReadUInt64">
232 <summary>从当前流中读取 8 字节无符号整数并使流的当前位置提升 8 个字节。</summary>
233 <returns>从该流中读取的 8 字节无符号整数。</returns>
234 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
235 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
236 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
237 <filterpriority>2</filterpriority>
239 <member name="T:System.IO.BinaryWriter">
240 <summary>以二进制形式将基元类型写入流,并支持用特定的编码写入字符串。</summary>
241 <filterpriority>2</filterpriority>
243 <member name="M:System.IO.BinaryWriter.#ctor">
244 <summary>初始化向流中写入的 <see cref="T:System.IO.BinaryWriter" /> 类的新实例。</summary>
246 <member name="M:System.IO.BinaryWriter.#ctor(System.IO.Stream)">
247 <summary>基于所指定的流和特定的 UTF-8 编码,初始化 <see cref="T:System.IO.BinaryWriter" /> 类的新实例。</summary>
248 <param name="output">输出流。</param>
249 <exception cref="T:System.ArgumentException">该流不支持写入或者该流已关闭。</exception>
250 <exception cref="T:System.ArgumentNullException">
251 <paramref name="output" /> 为 null。</exception>
253 <member name="M:System.IO.BinaryWriter.#ctor(System.IO.Stream,System.Text.Encoding)">
254 <summary>基于所指定的流和特定的字符编码,初始化 <see cref="T:System.IO.BinaryWriter" /> 类的新实例。</summary>
255 <param name="output">输出流。</param>
256 <param name="encoding">要使用的字符编码。</param>
257 <exception cref="T:System.ArgumentException">该流不支持写入或者该流已关闭。</exception>
258 <exception cref="T:System.ArgumentNullException">
259 <paramref name="output" /> 或 <paramref name="encoding" /> 为 null。</exception>
261 <member name="M:System.IO.BinaryWriter.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean)">
262 <summary>基于所提供的流和特定的字符编码,初始化 <see cref="T:System.IO.BinaryWriter" /> 类的新实例,有选择性的打开流。</summary>
263 <param name="output">输出流。</param>
264 <param name="encoding">要使用的字符编码。</param>
265 <param name="leaveOpen">如果在释放 <see cref="T:System.IO.BinaryWriter" /> 对象之后打开流对象,则为 true;否则为, false。</param>
266 <exception cref="T:System.ArgumentException">该流不支持写入或者该流已关闭。</exception>
267 <exception cref="T:System.ArgumentNullException">
268 <paramref name="output" /> 或 <paramref name="encoding" /> 为 null。</exception>
270 <member name="P:System.IO.BinaryWriter.BaseStream">
271 <summary>获取 <see cref="T:System.IO.BinaryWriter" /> 的基础流。</summary>
272 <returns>与 BinaryWriter 关联的基础流。</returns>
273 <filterpriority>1</filterpriority>
275 <member name="M:System.IO.BinaryWriter.Dispose">
276 <summary>释放由 <see cref="T:System.IO.BinaryWriter" /> 类的当前实例占用的所有资源。</summary>
278 <member name="M:System.IO.BinaryWriter.Dispose(System.Boolean)">
279 <summary>释放由 <see cref="T:System.IO.BinaryWriter" /> 占用的非托管资源,还可以另外再释放托管资源。</summary>
280 <param name="disposing">true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。</param>
282 <member name="M:System.IO.BinaryWriter.Flush">
283 <summary>清理当前编写器的所有缓冲区,使所有缓冲数据写入基础设备。</summary>
284 <filterpriority>1</filterpriority>
286 <member name="F:System.IO.BinaryWriter.Null">
287 <summary>指定无后备存储区的 <see cref="T:System.IO.BinaryWriter" />。</summary>
288 <filterpriority>1</filterpriority>
290 <member name="F:System.IO.BinaryWriter.OutStream">
291 <summary>持有基础流。</summary>
293 <member name="M:System.IO.BinaryWriter.Seek(System.Int32,System.IO.SeekOrigin)">
294 <summary>设置当前流中的位置。</summary>
295 <returns>包含当前流的位置。</returns>
296 <param name="offset">相对于 <paramref name="origin" /> 的字节偏移量。</param>
297 <param name="origin">
298 <see cref="T:System.IO.SeekOrigin" /> 的一个字段,指示获取新位置所依据的参考点。</param>
299 <exception cref="T:System.IO.IOException">文件指针被移到无效位置。</exception>
300 <exception cref="T:System.ArgumentException">
301 <see cref="T:System.IO.SeekOrigin" /> 值无效。</exception>
302 <filterpriority>1</filterpriority>
304 <member name="M:System.IO.BinaryWriter.Write(System.Boolean)">
305 <summary>将单字节 Boolean 值写入当前流,其中 0 表示 false,1 表示 true。</summary>
306 <param name="value">要写入的 Boolean 值(0 或 1)。</param>
307 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
308 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
309 <filterpriority>1</filterpriority>
311 <member name="M:System.IO.BinaryWriter.Write(System.Byte)">
312 <summary>将一个无符号字节写入当前流,并将流的位置提升 1 个字节。</summary>
313 <param name="value">要写入的无符号字节。</param>
314 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
315 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
316 <filterpriority>1</filterpriority>
318 <member name="M:System.IO.BinaryWriter.Write(System.Byte[])">
319 <summary>将字节数组写入基础流。</summary>
320 <param name="buffer">包含要写入的数据的字节数组。</param>
321 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
322 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
323 <exception cref="T:System.ArgumentNullException">
324 <paramref name="buffer" /> 为 null。</exception>
325 <filterpriority>1</filterpriority>
327 <member name="M:System.IO.BinaryWriter.Write(System.Byte[],System.Int32,System.Int32)">
328 <summary>将字节数组部分写入当前流。</summary>
329 <param name="buffer">包含要写入的数据的字节数组。</param>
331 <paramref name="buffer" /> 中开始写入的起始点。</param>
332 <param name="count">要写入的字节数。</param>
333 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
334 <exception cref="T:System.ArgumentNullException">
335 <paramref name="buffer" /> 为 null。</exception>
336 <exception cref="T:System.ArgumentOutOfRangeException">
337 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
338 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
339 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
340 <filterpriority>1</filterpriority>
342 <member name="M:System.IO.BinaryWriter.Write(System.Char)">
343 <summary>将 Unicode 字符写入当前流,并根据所使用的 Encoding 和向流中写入的特定字符,提升流的当前位置。</summary>
344 <param name="ch">要写入的非代理项 Unicode 字符。</param>
345 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
346 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
347 <exception cref="T:System.ArgumentException">
348 <paramref name="ch" /> 是单一代理项字符。</exception>
349 <filterpriority>1</filterpriority>
351 <member name="M:System.IO.BinaryWriter.Write(System.Char[])">
352 <summary>将字符数组写入当前流,并根据所使用的 Encoding 和向流中写入的特定字符,提升流的当前位置。</summary>
353 <param name="chars">包含要写入的数据的字符数组。</param>
354 <exception cref="T:System.ArgumentNullException">
355 <paramref name="chars" /> 为 null。</exception>
356 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
357 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
358 <filterpriority>1</filterpriority>
360 <member name="M:System.IO.BinaryWriter.Write(System.Char[],System.Int32,System.Int32)">
361 <summary>将字符数组部分写入当前流,并根据所使用的 Encoding(可能还根据向流中写入的特定字符),提升流的当前位置。</summary>
362 <param name="chars">包含要写入的数据的字符数组。</param>
364 <paramref name="chars" /> 中开始写入的起始点。</param>
365 <param name="count">要写入的字符数。</param>
366 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
367 <exception cref="T:System.ArgumentNullException">
368 <paramref name="chars" /> 为 null。</exception>
369 <exception cref="T:System.ArgumentOutOfRangeException">
370 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
371 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
372 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
373 <filterpriority>1</filterpriority>
375 <member name="M:System.IO.BinaryWriter.Write(System.Decimal)">
376 <summary>将一个十进制值写入当前流,并将流位置提升十六个字节。</summary>
377 <param name="value">要写入的十进制值。</param>
378 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
379 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
380 <filterpriority>1</filterpriority>
382 <member name="M:System.IO.BinaryWriter.Write(System.Double)">
383 <summary>将 8 字节浮点值写入当前流,并将流的位置提升 8 个字节。</summary>
384 <param name="value">要写入的 8 字节浮点值。</param>
385 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
386 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
387 <filterpriority>1</filterpriority>
389 <member name="M:System.IO.BinaryWriter.Write(System.Int16)">
390 <summary>将 2 字节有符号整数写入当前流,并将流的位置提升 2 个字节。</summary>
391 <param name="value">要写入的 2 字节有符号整数。</param>
392 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
393 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
394 <filterpriority>1</filterpriority>
396 <member name="M:System.IO.BinaryWriter.Write(System.Int32)">
397 <summary>将 4 字节有符号整数写入当前流,并将流的位置提升 4 个字节。</summary>
398 <param name="value">要写入的 4 字节有符号整数。</param>
399 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
400 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
401 <filterpriority>1</filterpriority>
403 <member name="M:System.IO.BinaryWriter.Write(System.Int64)">
404 <summary>将 8 字节有符号整数写入当前流,并将流的位置提升 8 个字节。</summary>
405 <param name="value">要写入的 8 字节有符号整数。</param>
406 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
407 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
408 <filterpriority>1</filterpriority>
410 <member name="M:System.IO.BinaryWriter.Write(System.SByte)">
411 <summary>将一个有符号字节写入当前流,并将流的位置提升 1 个字节。</summary>
412 <param name="value">要写入的有符号字节。</param>
413 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
414 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
415 <filterpriority>1</filterpriority>
417 <member name="M:System.IO.BinaryWriter.Write(System.Single)">
418 <summary>将 4 字节浮点值写入当前流,并将流的位置提升 4 个字节。</summary>
419 <param name="value">要写入的 4 字节浮点值。</param>
420 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
421 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
422 <filterpriority>1</filterpriority>
424 <member name="M:System.IO.BinaryWriter.Write(System.String)">
425 <summary>将有长度前缀的字符串按 <see cref="T:System.IO.BinaryWriter" /> 的当前编码写入此流,并根据所使用的编码和写入流的特定字符,提升流的当前位置。</summary>
426 <param name="value">要写入的值。</param>
427 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
428 <exception cref="T:System.ArgumentNullException">
429 <paramref name="value" /> 为 null。</exception>
430 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
431 <filterpriority>1</filterpriority>
433 <member name="M:System.IO.BinaryWriter.Write(System.UInt16)">
434 <summary>将 2 字节无符号整数写入当前流,并将流的位置提升 2 个字节。</summary>
435 <param name="value">要写入的 2 字节无符号整数。</param>
436 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
437 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
438 <filterpriority>1</filterpriority>
440 <member name="M:System.IO.BinaryWriter.Write(System.UInt32)">
441 <summary>将 4 字节无符号整数写入当前流,并将流的位置提升 4 个字节。</summary>
442 <param name="value">要写入的 4 字节无符号整数。</param>
443 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
444 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
445 <filterpriority>1</filterpriority>
447 <member name="M:System.IO.BinaryWriter.Write(System.UInt64)">
448 <summary>将 8 字节无符号整数写入当前流,并将流的位置提升 8 个字节。</summary>
449 <param name="value">要写入的 8 字节无符号整数。</param>
450 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
451 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
452 <filterpriority>1</filterpriority>
454 <member name="M:System.IO.BinaryWriter.Write7BitEncodedInt(System.Int32)">
455 <summary>以压缩格式写出 32 位整数。</summary>
456 <param name="value">要写出的 32 位整数。</param>
457 <exception cref="T:System.IO.EndOfStreamException">已到达流的末尾。</exception>
458 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
459 <exception cref="T:System.IO.IOException">流已关闭。</exception>
461 <member name="T:System.IO.EndOfStreamException">
462 <summary>读操作试图超出流的末尾时引发的异常。</summary>
463 <filterpriority>2</filterpriority>
465 <member name="M:System.IO.EndOfStreamException.#ctor">
466 <summary>初始化 <see cref="T:System.IO.EndOfStreamException" /> 类的新实例,将其消息字符串设置为系统提供的消息,其 HRESULT 设置为 COR_E_ENDOFSTREAM。</summary>
468 <member name="M:System.IO.EndOfStreamException.#ctor(System.String)">
469 <summary>初始化 <see cref="T:System.IO.EndOfStreamException" /> 类的新实例,使其消息字符串设置为 <paramref name="message" />,其 HRESULT 设置为 COR_E_ENDOFSTREAM。</summary>
470 <param name="message">描述错误的字符串。<paramref name="message" /> 的内容被设计为人可理解的形式。此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。</param>
472 <member name="M:System.IO.EndOfStreamException.#ctor(System.String,System.Exception)">
473 <summary>使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 <see cref="T:System.IO.EndOfStreamException" /> 类的新实例。</summary>
474 <param name="message">描述错误的字符串。<paramref name="message" /> 的内容被设计为人可理解的形式。此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。</param>
475 <param name="innerException">导致当前异常的异常。如果 <paramref name="innerException" /> 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。</param>
477 <member name="T:System.IO.InvalidDataException">
478 <summary>在数据流的格式无效时引发的异常。</summary>
480 <member name="M:System.IO.InvalidDataException.#ctor">
481 <summary>初始化 <see cref="T:System.IO.InvalidDataException" /> 类的新实例。</summary>
483 <member name="M:System.IO.InvalidDataException.#ctor(System.String)">
484 <summary>使用指定的错误消息初始化 <see cref="T:System.IO.InvalidDataException" /> 类的新实例。</summary>
485 <param name="message">解释异常原因的错误信息。</param>
487 <member name="M:System.IO.InvalidDataException.#ctor(System.String,System.Exception)">
488 <summary>用对作为此异常原因的内部异常的引用初始化 <see cref="T:System.IO.InvalidDataException" /> 类的新实例。</summary>
489 <param name="message">解释异常原因的错误信息。</param>
490 <param name="innerException">导致当前异常的异常。如果 <paramref name="innerException" /> 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。</param>
492 <member name="T:System.IO.MemoryStream">
493 <summary>创建一个流,其后备存储为内存。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。</summary>
494 <filterpriority>2</filterpriority>
496 <member name="M:System.IO.MemoryStream.#ctor">
497 <summary>使用初始化为零的可扩展容量初始化 <see cref="T:System.IO.MemoryStream" /> 类的新实例。</summary>
499 <member name="M:System.IO.MemoryStream.#ctor(System.Byte[])">
500 <summary>基于指定的字节数组初始化 <see cref="T:System.IO.MemoryStream" /> 类的无法调整大小的新实例。</summary>
501 <param name="buffer">从中创建当前流的无符号字节数组。</param>
502 <exception cref="T:System.ArgumentNullException">
503 <paramref name="buffer" /> 为 null。</exception>
505 <member name="M:System.IO.MemoryStream.#ctor(System.Byte[],System.Boolean)">
506 <summary>在 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性按指定设置的状态下,基于指定的字节数组初始化 <see cref="T:System.IO.MemoryStream" /> 类的无法调整大小的新实例。</summary>
507 <param name="buffer">从中创建此流的无符号字节的数组。</param>
508 <param name="writable">
509 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性的设置,确定该流是否支持写入。</param>
510 <exception cref="T:System.ArgumentNullException">
511 <paramref name="buffer" /> 为 null。</exception>
513 <member name="M:System.IO.MemoryStream.#ctor(System.Byte[],System.Int32,System.Int32)">
514 <summary>基于字节数组的指定区域(索引)初始化 <see cref="T:System.IO.MemoryStream" /> 类的无法调整大小的新实例。</summary>
515 <param name="buffer">从中创建此流的无符号字节的数组。</param>
517 <paramref name="buffer" /> 内的索引,流从此处开始。</param>
518 <param name="count">流的长度(以字节为单位)。</param>
519 <exception cref="T:System.ArgumentNullException">
520 <paramref name="buffer" /> 为 null。</exception>
521 <exception cref="T:System.ArgumentOutOfRangeException">
522 <paramref name="index" /> 或 <paramref name="count" /> 小于零。</exception>
523 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
525 <member name="M:System.IO.MemoryStream.#ctor(System.Byte[],System.Int32,System.Int32,System.Boolean)">
526 <summary>在 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性按指定设置的状态下,基于字节数组的指定区域,初始化 <see cref="T:System.IO.MemoryStream" /> 类的无法调整大小的新实例。</summary>
527 <param name="buffer">从中创建此流的无符号字节的数组。</param>
529 <paramref name="buffer" /> 内的索引,流从此处开始。</param>
530 <param name="count">流的长度(以字节为单位)。</param>
531 <param name="writable">
532 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性的设置,确定该流是否支持写入。</param>
533 <exception cref="T:System.ArgumentNullException">
534 <paramref name="buffer" /> 为 null。</exception>
535 <exception cref="T:System.ArgumentOutOfRangeException">
536 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
537 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
539 <member name="M:System.IO.MemoryStream.#ctor(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Boolean)">
540 <summary>在 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性和调用 <see cref="M:System.IO.MemoryStream.GetBuffer" /> 的能力按指定设置的状态下,基于字节数组的指定区域初始化 <see cref="T:System.IO.MemoryStream" /> 类的新实例。</summary>
541 <param name="buffer">从中创建此流的无符号字节的数组。</param>
543 <paramref name="buffer" /> 内的索引,流从此处开始。</param>
544 <param name="count">流的长度(以字节为单位)。</param>
545 <param name="writable">
546 <see cref="P:System.IO.MemoryStream.CanWrite" /> 属性的设置,确定该流是否支持写入。</param>
547 <param name="publiclyVisible">设置为 true 可以启用 <see cref="M:System.IO.MemoryStream.GetBuffer" />,它返回无符号字节数组,流从该数组创建;否则为 false。</param>
548 <exception cref="T:System.ArgumentNullException">
549 <paramref name="buffer" /> 为 null。</exception>
550 <exception cref="T:System.ArgumentOutOfRangeException">
551 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
552 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
554 <member name="M:System.IO.MemoryStream.#ctor(System.Int32)">
555 <summary>使用按指定要求初始化的可扩展容量初始化 <see cref="T:System.IO.MemoryStream" /> 类的新实例。</summary>
556 <param name="capacity">内部数组的初始大小(以字节为单位)。</param>
557 <exception cref="T:System.ArgumentOutOfRangeException">
558 <paramref name="capacity" /> 为负数。</exception>
560 <member name="P:System.IO.MemoryStream.CanRead">
561 <summary>获取一个值,该值指示当前流是否支持读取。</summary>
562 <returns>如果流是打开的,则为 true。</returns>
563 <filterpriority>2</filterpriority>
565 <member name="P:System.IO.MemoryStream.CanSeek">
566 <summary>获取一个值,该值指示当前流是否支持查找。</summary>
567 <returns>如果流是打开的,则为 true。</returns>
568 <filterpriority>2</filterpriority>
570 <member name="P:System.IO.MemoryStream.CanWrite">
571 <summary>获取一个值,该值指示当前流是否支持写入。</summary>
572 <returns>如果流支持写入,则为 true;否则为 false。</returns>
573 <filterpriority>2</filterpriority>
575 <member name="P:System.IO.MemoryStream.Capacity">
576 <summary>获取或设置分配给该流的字节数。</summary>
577 <returns>流的缓冲区的可使用部分的长度。</returns>
578 <exception cref="T:System.ArgumentOutOfRangeException">容量设置为负或小于流的当前长度。</exception>
579 <exception cref="T:System.ObjectDisposedException">当前流已关闭。</exception>
580 <exception cref="T:System.NotSupportedException">对不能修改其容量的流调用 set。</exception>
581 <filterpriority>2</filterpriority>
583 <member name="M:System.IO.MemoryStream.CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)">
584 <summary>使用指定的缓冲区大小和取消令牌,从当前流中异步读取所有字节并将其写入到另一个流中。</summary>
585 <returns>表示异步复制操作的任务。</returns>
586 <param name="destination">当前流的内容将复制到的流。</param>
587 <param name="bufferSize">缓冲区的大小(以字节为单位)。此值必须大于零。</param>
588 <param name="cancellationToken">要监视取消请求的标记。</param>
589 <exception cref="T:System.ArgumentNullException">
590 <paramref name="destination" /> 为 null。</exception>
591 <exception cref="T:System.ArgumentOutOfRangeException">
592 <paramref name="buffersize" /> 为负数或零。</exception>
593 <exception cref="T:System.ObjectDisposedException">当前流或目标流已释放。</exception>
594 <exception cref="T:System.NotSupportedException">当前流不支持阅读,或目标流不支持写入。</exception>
596 <member name="M:System.IO.MemoryStream.Dispose(System.Boolean)">
597 <summary>释放 <see cref="T:System.IO.MemoryStream" /> 类使用的非托管资源,并可以选择释放托管资源。</summary>
598 <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
600 <member name="M:System.IO.MemoryStream.Flush">
601 <summary>重写 <see cref="M:System.IO.Stream.Flush" /> 方法以便不执行任何操作。</summary>
602 <filterpriority>2</filterpriority>
604 <member name="M:System.IO.MemoryStream.FlushAsync(System.Threading.CancellationToken)">
605 <summary>异步清除此流的所有缓冲区,并监视取消请求。</summary>
606 <returns>表示异步刷新操作的任务。</returns>
607 <param name="cancellationToken">要监视取消请求的标记。</param>
608 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
610 <member name="P:System.IO.MemoryStream.Length">
611 <summary>获取流的长度(以字节为单位)。</summary>
612 <returns>流的长度(以字节为单位)。</returns>
613 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
614 <filterpriority>2</filterpriority>
616 <member name="P:System.IO.MemoryStream.Position">
617 <summary>获取或设置流中的当前位置。</summary>
618 <returns>流中的当前位置。</returns>
619 <exception cref="T:System.ArgumentOutOfRangeException">此位置设置为负值或大于 <see cref="F:System.Int32.MaxValue" /> 的值。</exception>
620 <exception cref="T:System.ObjectDisposedException">流已关闭。</exception>
621 <filterpriority>2</filterpriority>
623 <member name="M:System.IO.MemoryStream.Read(System.Byte[],System.Int32,System.Int32)">
624 <summary>从当前流中读取字节块并将数据写入缓冲区。</summary>
625 <returns>写入缓冲区中的总字节数。如果字节数当前不可用,则总字节数可能小于所请求的字节数;如果在读取到任何字节前已到达流结尾,则为零。</returns>
626 <param name="buffer">当此方法返回时,包含指定的字节数组,该数组中从 <paramref name="offset" /> 到 (<paramref name="offset" /> + <paramref name="count" /> -1) 之间的值由从当前流中读取的字符替换。</param>
627 <param name="offset">
628 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始存储当前流中的数据。</param>
629 <param name="count">最多读取的字节数。</param>
630 <exception cref="T:System.ArgumentNullException">
631 <paramref name="buffer" /> 为 null。</exception>
632 <exception cref="T:System.ArgumentOutOfRangeException">
633 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
634 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="offset" /> 的结果小于 <paramref name="count" />。</exception>
635 <exception cref="T:System.ObjectDisposedException">当前流实例已关闭。</exception>
636 <filterpriority>2</filterpriority>
638 <member name="M:System.IO.MemoryStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
639 <summary>从当前流异步读取字节的序列,将流中的位置提升读取的字节数,并监视取消请求。</summary>
640 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可小于所请求的字节数;如果已到达流结尾时,则为 0(零)。</returns>
641 <param name="buffer">数据写入的缓冲区。</param>
642 <param name="offset">
643 <paramref name="buffer" /> 中的字节偏移量,从该偏移量开始写入从流中读取的数据。</param>
644 <param name="count">最多读取的字节数。</param>
645 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
646 <exception cref="T:System.ArgumentNullException">
647 <paramref name="buffer" /> 为 null。</exception>
648 <exception cref="T:System.ArgumentOutOfRangeException">
649 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
650 <exception cref="T:System.ArgumentException">
651 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
652 <exception cref="T:System.NotSupportedException">流不支持读取。</exception>
653 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
654 <exception cref="T:System.InvalidOperationException">该流正在由其前一次读取操作使用。</exception>
656 <member name="M:System.IO.MemoryStream.ReadByte">
657 <summary>从当前流中读取一个字节。</summary>
658 <returns>强制转换为 <see cref="T:System.Int32" /> 的字节;或者如果已到达流的末尾,则为 -1。</returns>
659 <exception cref="T:System.ObjectDisposedException">当前流实例已关闭。</exception>
660 <filterpriority>2</filterpriority>
662 <member name="M:System.IO.MemoryStream.Seek(System.Int64,System.IO.SeekOrigin)">
663 <summary>将当前流中的位置设置为指定值。</summary>
664 <returns>流内的新位置,通过将初始引用点和偏移量合并计算而得。</returns>
665 <param name="offset">流内的新位置。它是相对于 <paramref name="loc" /> 参数的位置,而且可正可负。</param>
666 <param name="loc">类型 <see cref="T:System.IO.SeekOrigin" /> 的值,它用作查找引用点。</param>
667 <exception cref="T:System.IO.IOException">试图在流的开始位置之前查找。</exception>
668 <exception cref="T:System.ArgumentOutOfRangeException">
669 <paramref name="offset" /> 大于 <see cref="F:System.Int32.MaxValue" />。</exception>
670 <exception cref="T:System.ArgumentException">
671 <see cref="T:System.IO.SeekOrigin" /> 无效。- 或 -<paramref name="offset" /> 导致算法溢出。</exception>
672 <exception cref="T:System.ObjectDisposedException">当前流实例已关闭。</exception>
673 <filterpriority>2</filterpriority>
675 <member name="M:System.IO.MemoryStream.SetLength(System.Int64)">
676 <summary>将当前流的长度设为指定值。</summary>
677 <param name="value">用于设置长度的值。</param>
678 <exception cref="T:System.NotSupportedException">当前流无法调整大小,而且 <paramref name="value" /> 大于当前容量。- 或 - 当前流不支持写入。</exception>
679 <exception cref="T:System.ArgumentOutOfRangeException">
680 <paramref name="value" /> 为负或者大于 <see cref="T:System.IO.MemoryStream" /> 的最大长度,其中最大长度为 (<see cref="F:System.Int32.MaxValue" />- origin),origin 为基础缓冲区中作为流的起点的索引。</exception>
681 <filterpriority>2</filterpriority>
683 <member name="M:System.IO.MemoryStream.ToArray">
684 <summary>将流内容写入字节数组,而与 <see cref="P:System.IO.MemoryStream.Position" /> 属性无关。</summary>
685 <returns>新的字节数组。</returns>
686 <filterpriority>2</filterpriority>
688 <member name="M:System.IO.MemoryStream.TryGetBuffer(System.ArraySegment{System.Byte}@)">
689 <summary>返回从中创建此流的无符号字节的数组。用于指示转换是否成功的返回值。</summary>
690 <returns>如果转换成功,则为 true;否则为 false。</returns>
691 <param name="buffer">用于创建此流的字节数组段。</param>
693 <member name="M:System.IO.MemoryStream.Write(System.Byte[],System.Int32,System.Int32)">
694 <summary>使用从缓冲区读取的数据将字节块写入当前流。</summary>
695 <param name="buffer">从中写入数据的缓冲区。</param>
696 <param name="offset">
697 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始将字节复制到当前流。</param>
698 <param name="count">最多写入的字节数。</param>
699 <exception cref="T:System.ArgumentNullException">
700 <paramref name="buffer" /> 为 null。</exception>
701 <exception cref="T:System.NotSupportedException">流不支持写入。有关其他信息,请参见 <see cref="P:System.IO.Stream.CanWrite" />。- 或 - 当前位置到流结尾的距离小于 <paramref name="count" /> 字节,并且无法修改容量。</exception>
702 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="offset" /> 的结果小于 <paramref name="count" />。</exception>
703 <exception cref="T:System.ArgumentOutOfRangeException">
704 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
705 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
706 <exception cref="T:System.ObjectDisposedException">当前流实例已关闭。</exception>
707 <filterpriority>2</filterpriority>
709 <member name="M:System.IO.MemoryStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
710 <summary>将字节的序列异步写入当前流,将该流中的当前位置向前移动写入的字节数,并监视取消请求。</summary>
711 <returns>表示异步写入操作的任务。</returns>
712 <param name="buffer">从中写入数据的缓冲区。</param>
713 <param name="offset">
714 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始将字节复制到该流。</param>
715 <param name="count">最多写入的字节数。</param>
716 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
717 <exception cref="T:System.ArgumentNullException">
718 <paramref name="buffer" /> 为 null。</exception>
719 <exception cref="T:System.ArgumentOutOfRangeException">
720 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
721 <exception cref="T:System.ArgumentException">
722 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
723 <exception cref="T:System.NotSupportedException">流不支持写入。</exception>
724 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
725 <exception cref="T:System.InvalidOperationException">该流正在由其前一次写入操作使用。</exception>
727 <member name="M:System.IO.MemoryStream.WriteByte(System.Byte)">
728 <summary>将一个字节写入当前位置上的当前流。</summary>
729 <param name="value">要写入的字节。</param>
730 <exception cref="T:System.NotSupportedException">流不支持写入。有关其他信息,请参见 <see cref="P:System.IO.Stream.CanWrite" />。- 或 - 当前位置位于流的末尾,而且容量不能被修改。</exception>
731 <exception cref="T:System.ObjectDisposedException">当前流已关闭。</exception>
732 <filterpriority>2</filterpriority>
734 <member name="M:System.IO.MemoryStream.WriteTo(System.IO.Stream)">
735 <summary>将此内存流的整个内容写入到另一个流中。</summary>
736 <param name="stream">要写入此内存流的流。</param>
737 <exception cref="T:System.ArgumentNullException">
738 <paramref name="stream" /> 为 null。</exception>
739 <exception cref="T:System.ObjectDisposedException">当前流或目标流已关闭。</exception>
740 <filterpriority>2</filterpriority>
742 <member name="T:System.IO.SeekOrigin">
743 <summary>指定在流的位置以查找使用。</summary>
744 <filterpriority>2</filterpriority>
746 <member name="F:System.IO.SeekOrigin.Begin">
747 <summary>指定流的开头。</summary>
749 <member name="F:System.IO.SeekOrigin.Current">
750 <summary>指定流内的当前位置。</summary>
752 <member name="F:System.IO.SeekOrigin.End">
753 <summary>指定流的结尾。</summary>
755 <member name="T:System.IO.Stream">
756 <summary>提供字节序列的一般视图。这是一个抽象类。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。</summary>
757 <filterpriority>2</filterpriority>
759 <member name="M:System.IO.Stream.#ctor">
760 <summary>初始化 <see cref="T:System.IO.Stream" /> 类的新实例。</summary>
762 <member name="P:System.IO.Stream.CanRead">
763 <summary>当在派生类中重写时,获取指示当前流是否支持读取的值。</summary>
764 <returns>如果流支持读取,为 true;否则为 false。</returns>
765 <filterpriority>1</filterpriority>
767 <member name="P:System.IO.Stream.CanSeek">
768 <summary>当在派生类中重写时,获取指示当前流是否支持查找功能的值。</summary>
769 <returns>如果流支持查找,为 true;否则为 false。</returns>
770 <filterpriority>1</filterpriority>
772 <member name="P:System.IO.Stream.CanTimeout">
773 <summary>获取一个值,该值确定当前流是否可以超时。</summary>
774 <returns>一个确定当前流是否可以超时的值。</returns>
775 <filterpriority>2</filterpriority>
777 <member name="P:System.IO.Stream.CanWrite">
778 <summary>当在派生类中重写时,获取指示当前流是否支持写入功能的值。</summary>
779 <returns>如果流支持写入,则为 true;否则为 false。</returns>
780 <filterpriority>1</filterpriority>
782 <member name="M:System.IO.Stream.CopyTo(System.IO.Stream)">
783 <summary>从当前流中读取字节并将其写入到另一流中。</summary>
784 <param name="destination">当前流的内容将复制到的流。</param>
785 <exception cref="T:System.ArgumentNullException">
786 <paramref name="destination" /> 为 null。</exception>
787 <exception cref="T:System.NotSupportedException">当前流不支持读取。- 或 -<paramref name="destination" /> 不支持写入。</exception>
788 <exception cref="T:System.ObjectDisposedException">在调用 <paramref name="destination" /> 方法前当前流或 <see cref="M:System.IO.Stream.CopyTo(System.IO.Stream)" /> 已关闭。</exception>
789 <exception cref="T:System.IO.IOException">发生了 I/O 错误。</exception>
791 <member name="M:System.IO.Stream.CopyTo(System.IO.Stream,System.Int32)">
792 <summary>使用指定的缓冲区大小,从当前流中读取字节并将其写入到另一流中。</summary>
793 <param name="destination">当前流的内容将复制到的流。</param>
794 <param name="bufferSize">缓冲区的大小。此值必须大于零。默认大小为 81920。</param>
795 <exception cref="T:System.ArgumentNullException">
796 <paramref name="destination" /> 为 null。</exception>
797 <exception cref="T:System.ArgumentOutOfRangeException">
798 <paramref name="bufferSize" /> 为负数或零。</exception>
799 <exception cref="T:System.NotSupportedException">当前流不支持读取。- 或 -<paramref name="destination" /> 不支持写入。</exception>
800 <exception cref="T:System.ObjectDisposedException">在调用 <paramref name="destination" /> 方法前当前流或 <see cref="M:System.IO.Stream.CopyTo(System.IO.Stream)" /> 已关闭。</exception>
801 <exception cref="T:System.IO.IOException">发生了 I/O 错误。</exception>
803 <member name="M:System.IO.Stream.CopyToAsync(System.IO.Stream)">
804 <summary>从当前流中异步读取字节并将其写入到另一个流中。</summary>
805 <returns>表示异步复制操作的任务。</returns>
806 <param name="destination">当前流的内容将复制到的流。</param>
807 <exception cref="T:System.ArgumentNullException">
808 <paramref name="destination" /> 为 null。</exception>
809 <exception cref="T:System.ObjectDisposedException">当前流或目标流已释放。</exception>
810 <exception cref="T:System.NotSupportedException">当前流不支持阅读,或目标流不支持写入。</exception>
812 <member name="M:System.IO.Stream.CopyToAsync(System.IO.Stream,System.Int32)">
813 <summary>使用指定的缓冲区大小,从当前流中异步读取字节并将其写入到另一流中。</summary>
814 <returns>表示异步复制操作的任务。</returns>
815 <param name="destination">当前流的内容将复制到的流。</param>
816 <param name="bufferSize">缓冲区的大小(以字节为单位)。此值必须大于零。默认大小为 81920。</param>
817 <exception cref="T:System.ArgumentNullException">
818 <paramref name="destination" /> 为 null。</exception>
819 <exception cref="T:System.ArgumentOutOfRangeException">
820 <paramref name="buffersize" /> 为负数或零。</exception>
821 <exception cref="T:System.ObjectDisposedException">当前流或目标流已释放。</exception>
822 <exception cref="T:System.NotSupportedException">当前流不支持阅读,或目标流不支持写入。</exception>
824 <member name="M:System.IO.Stream.CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)">
825 <summary>使用指定的缓冲区大小和取消令牌,从当前流中异步读取字节并将其写入到另一个流中。</summary>
826 <returns>表示异步复制操作的任务。</returns>
827 <param name="destination">当前流的内容将复制到的流。</param>
828 <param name="bufferSize">缓冲区的大小(以字节为单位)。此值必须大于零。默认大小为 81920。</param>
829 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
830 <exception cref="T:System.ArgumentNullException">
831 <paramref name="destination" /> 为 null。</exception>
832 <exception cref="T:System.ArgumentOutOfRangeException">
833 <paramref name="buffersize" /> 为负数或零。</exception>
834 <exception cref="T:System.ObjectDisposedException">当前流或目标流已释放。</exception>
835 <exception cref="T:System.NotSupportedException">当前流不支持阅读,或目标流不支持写入。</exception>
837 <member name="M:System.IO.Stream.Dispose">
838 <summary>释放由 <see cref="T:System.IO.Stream" /> 使用的所有资源。</summary>
840 <member name="M:System.IO.Stream.Dispose(System.Boolean)">
841 <summary>释放由 <see cref="T:System.IO.Stream" /> 占用的非托管资源,还可以释放托管资源。</summary>
842 <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
844 <member name="M:System.IO.Stream.Flush">
845 <summary>当在派生类中重写时,将清除该流的所有缓冲区,并使得所有缓冲数据被写入到基础设备。</summary>
846 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
847 <filterpriority>2</filterpriority>
849 <member name="M:System.IO.Stream.FlushAsync">
850 <summary>异步清除此流的所有缓冲区并导致所有缓冲数据都写入基础设备中。</summary>
851 <returns>表示异步刷新操作的任务。</returns>
852 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
854 <member name="M:System.IO.Stream.FlushAsync(System.Threading.CancellationToken)">
855 <summary>异步清理这个流的所有缓冲区,并使所有缓冲数据写入基础设备,并且监控取消请求。</summary>
856 <returns>表示异步刷新操作的任务。</returns>
857 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
858 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
860 <member name="P:System.IO.Stream.Length">
861 <summary>当在派生类中重写时,获取流长度(以字节为单位)。</summary>
862 <returns>表示流长度(以字节为单位)的长值。</returns>
863 <exception cref="T:System.NotSupportedException">从 Stream 派生的类不支持查找。</exception>
864 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
865 <filterpriority>1</filterpriority>
867 <member name="F:System.IO.Stream.Null">
868 <summary>无后备存储区的 Stream。</summary>
869 <filterpriority>1</filterpriority>
871 <member name="P:System.IO.Stream.Position">
872 <summary>当在派生类中重写时,获取或设置当前流中的位置。</summary>
873 <returns>流中的当前位置。</returns>
874 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
875 <exception cref="T:System.NotSupportedException">流不支持查找。</exception>
876 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
877 <filterpriority>1</filterpriority>
879 <member name="M:System.IO.Stream.Read(System.Byte[],System.Int32,System.Int32)">
880 <summary>当在派生类中重写时,从当前流读取字节序列,并将此流中的位置提升读取的字节数。</summary>
881 <returns>读入缓冲区中的总字节数。如果很多字节当前不可用,则总字节数可能小于请求的字节数;如果已到达流结尾,则为零 (0)。</returns>
882 <param name="buffer">字节数组。此方法返回时,该缓冲区包含指定的字符数组,该数组的 <paramref name="offset" /> 和 (<paramref name="offset" /> + <paramref name="count" /> -1) 之间的值由从当前源中读取的字节替换。</param>
883 <param name="offset">
884 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始存储从当前流中读取的数据。</param>
885 <param name="count">要从当前流中最多读取的字节数。</param>
886 <exception cref="T:System.ArgumentException">
887 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
888 <exception cref="T:System.ArgumentNullException">
889 <paramref name="buffer" /> 为 null。</exception>
890 <exception cref="T:System.ArgumentOutOfRangeException">
891 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
892 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
893 <exception cref="T:System.NotSupportedException">流不支持读取。</exception>
894 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
895 <filterpriority>1</filterpriority>
897 <member name="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)">
898 <summary>从当前流异步读取字节序列,并将流中的位置提升读取的字节数。</summary>
899 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可小于所请求的字节数;如果已到达流结尾时,则为 0(零)。</returns>
900 <param name="buffer">数据写入的缓冲区。</param>
901 <param name="offset">
902 <paramref name="buffer" /> 中的字节偏移量,从该偏移量开始写入从流中读取的数据。</param>
903 <param name="count">最多读取的字节数。</param>
904 <exception cref="T:System.ArgumentNullException">
905 <paramref name="buffer" /> 为 null。</exception>
906 <exception cref="T:System.ArgumentOutOfRangeException">
907 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
908 <exception cref="T:System.ArgumentException">
909 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
910 <exception cref="T:System.NotSupportedException">流不支持读取。</exception>
911 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
912 <exception cref="T:System.InvalidOperationException">该流正在由其前一次读取操作使用。</exception>
914 <member name="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
915 <summary>从当前流异步读取字节的序列,将流中的位置提升读取的字节数,并监视取消请求。</summary>
916 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可小于所请求的字节数;如果已到达流结尾时,则为 0(零)。</returns>
917 <param name="buffer">数据写入的缓冲区。</param>
918 <param name="offset">
919 <paramref name="buffer" /> 中的字节偏移量,从该偏移量开始写入从流中读取的数据。</param>
920 <param name="count">最多读取的字节数。</param>
921 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
922 <exception cref="T:System.ArgumentNullException">
923 <paramref name="buffer" /> 为 null。</exception>
924 <exception cref="T:System.ArgumentOutOfRangeException">
925 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
926 <exception cref="T:System.ArgumentException">
927 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
928 <exception cref="T:System.NotSupportedException">流不支持读取。</exception>
929 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
930 <exception cref="T:System.InvalidOperationException">该流正在由其前一次读取操作使用。</exception>
932 <member name="M:System.IO.Stream.ReadByte">
933 <summary>从流中读取一个字节,并将流内的位置向前提升一个字节,或者如果已到达流结尾,则返回 -1。</summary>
934 <returns>强制转换为 Int32 的无符号字节,如果到达流的末尾,则为 -1。</returns>
935 <exception cref="T:System.NotSupportedException">流不支持读取。</exception>
936 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
937 <filterpriority>2</filterpriority>
939 <member name="P:System.IO.Stream.ReadTimeout">
940 <summary>获取或设置一个值(以毫秒为单位),该值确定流在超时前尝试读取多长时间。</summary>
941 <returns>一个确定流在超时前尝试读取多长时间的值(以毫秒为单位)。</returns>
942 <exception cref="T:System.InvalidOperationException">
943 <see cref="P:System.IO.Stream.ReadTimeout" /> 方法总是引发 <see cref="T:System.InvalidOperationException" />。</exception>
944 <filterpriority>2</filterpriority>
946 <member name="M:System.IO.Stream.Seek(System.Int64,System.IO.SeekOrigin)">
947 <summary>当在派生类中重写时,设置当前流中的位置。</summary>
948 <returns>当前流中的新位置。</returns>
949 <param name="offset">相对于 <paramref name="origin" /> 参数的字节偏移量。</param>
950 <param name="origin">
951 <see cref="T:System.IO.SeekOrigin" /> 类型的值,指示用于获取新位置的参考点。</param>
952 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
953 <exception cref="T:System.NotSupportedException">流不支持查找,例如在流通过管道或控制台输出构造的情况下即为如此。</exception>
954 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
955 <filterpriority>1</filterpriority>
957 <member name="M:System.IO.Stream.SetLength(System.Int64)">
958 <summary>当在派生类中重写时,设置当前流的长度。</summary>
959 <param name="value">所需的当前流的长度(以字节表示)。</param>
960 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
961 <exception cref="T:System.NotSupportedException">流不支持写入和查找,例如在流通过管道或控制台输出构造的情况下即为如此。</exception>
962 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
963 <filterpriority>2</filterpriority>
965 <member name="M:System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32)">
966 <summary>当在派生类中重写时,向当前流中写入字节序列,并将此流中的当前位置提升写入的字节数。</summary>
967 <param name="buffer">字节数组。此方法将 <paramref name="count" /> 个字节从 <paramref name="buffer" /> 复制到当前流。</param>
968 <param name="offset">
969 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始将字节复制到当前流。</param>
970 <param name="count">要写入当前流的字节数。</param>
971 <exception cref="T:System.ArgumentException">总和 <paramref name="offset" /> 和 <paramref name="count" /> 大于缓冲区长度。</exception>
972 <exception cref="T:System.ArgumentNullException">
973 <paramref name="buffer" /> 是 null。</exception>
974 <exception cref="T:System.ArgumentOutOfRangeException">
975 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
976 <exception cref="T:System.IO.IOException">将出现 I/O 错误,如找不到指定的文件。</exception>
977 <exception cref="T:System.NotSupportedException">流不支持写入。</exception>
978 <exception cref="T:System.ObjectDisposedException">
979 <see cref="M:System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32)" /> 流关闭后调用。</exception>
980 <filterpriority>1</filterpriority>
982 <member name="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)">
983 <summary>将字节序列异步写入当前流,并将流的当前位置提升写入的字节数。</summary>
984 <returns>表示异步写入操作的任务。</returns>
985 <param name="buffer">从中写入数据的缓冲区。</param>
986 <param name="offset">
987 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始将字节复制到该流。</param>
988 <param name="count">最多写入的字节数。</param>
989 <exception cref="T:System.ArgumentNullException">
990 <paramref name="buffer" /> 为 null。</exception>
991 <exception cref="T:System.ArgumentOutOfRangeException">
992 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
993 <exception cref="T:System.ArgumentException">
994 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
995 <exception cref="T:System.NotSupportedException">流不支持写入。</exception>
996 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
997 <exception cref="T:System.InvalidOperationException">该流正在由其前一次写入操作使用。</exception>
999 <member name="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
1000 <summary>将字节的序列异步写入当前流,将该流中的当前位置向前移动写入的字节数,并监视取消请求。</summary>
1001 <returns>表示异步写入操作的任务。</returns>
1002 <param name="buffer">从中写入数据的缓冲区。</param>
1003 <param name="offset">
1004 <paramref name="buffer" /> 中的从零开始的字节偏移量,从此处开始将字节复制到该流。</param>
1005 <param name="count">最多写入的字节数。</param>
1006 <param name="cancellationToken">要监视取消请求的标记。默认值为 <see cref="P:System.Threading.CancellationToken.None" />。</param>
1007 <exception cref="T:System.ArgumentNullException">
1008 <paramref name="buffer" /> 为 null。</exception>
1009 <exception cref="T:System.ArgumentOutOfRangeException">
1010 <paramref name="offset" /> 或 <paramref name="count" /> 为负。</exception>
1011 <exception cref="T:System.ArgumentException">
1012 <paramref name="offset" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1013 <exception cref="T:System.NotSupportedException">流不支持写入。</exception>
1014 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1015 <exception cref="T:System.InvalidOperationException">该流正在由其前一次写入操作使用。</exception>
1017 <member name="M:System.IO.Stream.WriteByte(System.Byte)">
1018 <summary>将一个字节写入流内的当前位置,并将流内的位置向前提升一个字节。</summary>
1019 <param name="value">要写入流中的字节。</param>
1020 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1021 <exception cref="T:System.NotSupportedException">该流不支持写入,或者该流已关闭。</exception>
1022 <exception cref="T:System.ObjectDisposedException">在流关闭后调用方法。</exception>
1023 <filterpriority>2</filterpriority>
1025 <member name="P:System.IO.Stream.WriteTimeout">
1026 <summary>获取或设置一个值(以毫秒为单位),该值确定流在超时前尝试写入多长时间。</summary>
1027 <returns>一个确定流在超时前尝试写入多长时间的值(以毫秒为单位)。</returns>
1028 <exception cref="T:System.InvalidOperationException">
1029 <see cref="P:System.IO.Stream.WriteTimeout" /> 方法总是引发 <see cref="T:System.InvalidOperationException" />。</exception>
1030 <filterpriority>2</filterpriority>
1032 <member name="T:System.IO.StreamReader">
1033 <summary>实现一个 <see cref="T:System.IO.TextReader" />,使其以一种特定的编码从字节流中读取字符。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。</summary>
1034 <filterpriority>1</filterpriority>
1036 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream)">
1037 <summary>为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的新实例。</summary>
1038 <param name="stream">要读取的流。</param>
1039 <exception cref="T:System.ArgumentException">
1040 <paramref name="stream" /> 不支持读取。</exception>
1041 <exception cref="T:System.ArgumentNullException">
1042 <paramref name="stream" /> 为 null。</exception>
1044 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream,System.Boolean)">
1045 <summary>用指定的字节顺序标记检测选项,为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的一个新实例。</summary>
1046 <param name="stream">要读取的流。</param>
1047 <param name="detectEncodingFromByteOrderMarks">指示是否在文件头查找字节顺序标记。</param>
1048 <exception cref="T:System.ArgumentException">
1049 <paramref name="stream" /> 不支持读取。</exception>
1050 <exception cref="T:System.ArgumentNullException">
1051 <paramref name="stream" /> 为 null。</exception>
1053 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream,System.Text.Encoding)">
1054 <summary>用指定的字符编码为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的一个新实例。</summary>
1055 <param name="stream">要读取的流。</param>
1056 <param name="encoding">要使用的字符编码。</param>
1057 <exception cref="T:System.ArgumentException">
1058 <paramref name="stream" /> 不支持读取。</exception>
1059 <exception cref="T:System.ArgumentNullException">
1060 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。</exception>
1062 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean)">
1063 <summary>为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的新实例,带有指定的字符编码和字节顺序标记检测选项。</summary>
1064 <param name="stream">要读取的流。</param>
1065 <param name="encoding">要使用的字符编码。</param>
1066 <param name="detectEncodingFromByteOrderMarks">指示是否在文件头查找字节顺序标记。</param>
1067 <exception cref="T:System.ArgumentException">
1068 <paramref name="stream" /> 不支持读取。</exception>
1069 <exception cref="T:System.ArgumentNullException">
1070 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。</exception>
1072 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean,System.Int32)">
1073 <summary>为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的新实例,带有指定的字符编码、字节顺序标记检测选项和缓冲区大小。</summary>
1074 <param name="stream">要读取的流。</param>
1075 <param name="encoding">要使用的字符编码。</param>
1076 <param name="detectEncodingFromByteOrderMarks">指示是否在文件头查找字节顺序标记。</param>
1077 <param name="bufferSize">最小缓冲区大小。</param>
1078 <exception cref="T:System.ArgumentException">流不支持读取。</exception>
1079 <exception cref="T:System.ArgumentNullException">
1080 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。</exception>
1081 <exception cref="T:System.ArgumentOutOfRangeException">
1082 <paramref name="bufferSize" /> 小于或等于零。</exception>
1084 <member name="M:System.IO.StreamReader.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean,System.Int32,System.Boolean)">
1085 <summary>为指定的流初始化 <see cref="T:System.IO.StreamReader" /> 类的新实例,带有指定的字符编码、字节顺序标记检测选项和缓冲区大小,有选择性的打开流。</summary>
1086 <param name="stream">要读取的流。</param>
1087 <param name="encoding">要使用的字符编码。</param>
1088 <param name="detectEncodingFromByteOrderMarks">如果要在文件开头查找字节顺序标记,则为 true;否则为 false。</param>
1089 <param name="bufferSize">最小缓冲区大小。</param>
1090 <param name="leaveOpen">如果在释放 <see cref="T:System.IO.StreamReader" /> 对象后保持流处于打开状态,则为 true;否则为 false。</param>
1092 <member name="P:System.IO.StreamReader.BaseStream">
1093 <summary>返回基础流。</summary>
1094 <returns>基础流。</returns>
1095 <filterpriority>2</filterpriority>
1097 <member name="P:System.IO.StreamReader.CurrentEncoding">
1098 <summary>获取当前 <see cref="T:System.IO.StreamReader" /> 对象正在使用的当前字符编码。</summary>
1099 <returns>当前读取器所使用的当前字符编码。第一次调用 <see cref="T:System.IO.StreamReader" /> 的任何 <see cref="Overload:System.IO.StreamReader.Read" /> 方法后,该值可能会不同,因为直到第一次调用 <see cref="Overload:System.IO.StreamReader.Read" /> 方法时,才会进行编码的自动检测。</returns>
1100 <filterpriority>2</filterpriority>
1102 <member name="M:System.IO.StreamReader.DiscardBufferedData">
1103 <summary>清除内部缓冲区。</summary>
1104 <filterpriority>2</filterpriority>
1106 <member name="M:System.IO.StreamReader.Dispose(System.Boolean)">
1107 <summary>关闭基础流,释放 <see cref="T:System.IO.StreamReader" /> 使用的未托管资源,同时还可以根据需要释放托管资源。</summary>
1108 <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
1110 <member name="P:System.IO.StreamReader.EndOfStream">
1111 <summary>获取一个值,该值指示当前的流位置是否在流结尾。</summary>
1112 <returns>如果当前流位置位于流的末尾,则为 true;否则为 false。</returns>
1113 <exception cref="T:System.ObjectDisposedException">基础流已释放。</exception>
1114 <filterpriority>1</filterpriority>
1116 <member name="F:System.IO.StreamReader.Null">
1117 <summary>空流周围的 <see cref="T:System.IO.StreamReader" />。</summary>
1118 <filterpriority>1</filterpriority>
1120 <member name="M:System.IO.StreamReader.Peek">
1121 <summary>返回下一个可用字符,但不使用它。</summary>
1122 <returns>为表示下一个要读取的字符的整数,或者,如果没有要读取的字符或该流不支持查找,则为 -1。</returns>
1123 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1124 <filterpriority>1</filterpriority>
1126 <member name="M:System.IO.StreamReader.Read">
1127 <summary>读取输入流中的下一个字符并使该字符位置提升一个字符。</summary>
1128 <returns>输入流中表示为 <see cref="T:System.Int32" /> 对象的下一个字符。如果不再有可用的字符,则为 -1。</returns>
1129 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1130 <filterpriority>1</filterpriority>
1132 <member name="M:System.IO.StreamReader.Read(System.Char[],System.Int32,System.Int32)">
1133 <summary>从指定的索引位置开始将来自当前流的指定的最多字符读到缓冲区。</summary>
1134 <returns>已读取的字符数,或者如果已到达流结尾并且未读取任何数据,则为 0。该数小于或等于 <paramref name="count" /> 参数,具体取决于流中是否有可用的数据。</returns>
1135 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index + count - 1" />) 之间的值由从当前源中读取的字符替换。</param>
1136 <param name="index">开始写入的 <paramref name="buffer" /> 的索引。</param>
1137 <param name="count">要读取的最大字符数。</param>
1138 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
1139 <exception cref="T:System.ArgumentNullException">
1140 <paramref name="buffer" /> 为 null。</exception>
1141 <exception cref="T:System.ArgumentOutOfRangeException">
1142 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1143 <exception cref="T:System.IO.IOException">出现 I/O 错误,如流被关闭。</exception>
1144 <filterpriority>1</filterpriority>
1146 <member name="M:System.IO.StreamReader.ReadAsync(System.Char[],System.Int32,System.Int32)">
1147 <summary>从当前流中异步读取指定的最大字符,并且从指定的索引位置开始将该数据写入缓冲区。</summary>
1148 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可小于所请求的字节数;如果已到达流结尾时,则为 0(零)。</returns>
1149 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1150 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1151 <param name="count">要读取的最大字符数。如果在将指定的字符数写入缓冲区之前已到达流结尾,则将返回当前方法。</param>
1152 <exception cref="T:System.ArgumentNullException">
1153 <paramref name="buffer" /> 为 null。</exception>
1154 <exception cref="T:System.ArgumentOutOfRangeException">
1155 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1156 <exception cref="T:System.ArgumentException">
1157 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1158 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1159 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1161 <member name="M:System.IO.StreamReader.ReadBlock(System.Char[],System.Int32,System.Int32)">
1162 <summary>从当前流中读取指定的最大字符数并从指定的索引位置开始将该数据写入缓冲区。</summary>
1163 <returns>已读取的字符数。该数字将小于或等于 <paramref name="count" />,取决于是否所有的输入字符都已读取。</returns>
1164 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index + count - 1" />) 之间的值由从当前源中读取的字符替换。</param>
1165 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1166 <param name="count">要读取的最大字符数。</param>
1167 <exception cref="T:System.ArgumentNullException">
1168 <paramref name="buffer" /> 为 null。</exception>
1169 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
1170 <exception cref="T:System.ArgumentOutOfRangeException">
1171 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1172 <exception cref="T:System.ObjectDisposedException">
1173 <see cref="T:System.IO.StreamReader" /> 是关闭的。</exception>
1174 <exception cref="T:System.IO.IOException">发生了 I/O 错误。</exception>
1176 <member name="M:System.IO.StreamReader.ReadBlockAsync(System.Char[],System.Int32,System.Int32)">
1177 <summary>从当前流中异步读取指定的最大字符,并且从指定的索引位置开始将该数据写入缓冲区。</summary>
1178 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可小于所请求的字节数;如果已到达流结尾时,则为 0(零)。</returns>
1179 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1180 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1181 <param name="count">要读取的最大字符数。如果在将指定的字符数写入到缓冲区之前就已经达到流结尾,则将返回此方法。</param>
1182 <exception cref="T:System.ArgumentNullException">
1183 <paramref name="buffer" /> 为 null。</exception>
1184 <exception cref="T:System.ArgumentOutOfRangeException">
1185 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1186 <exception cref="T:System.ArgumentException">
1187 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1188 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1189 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1191 <member name="M:System.IO.StreamReader.ReadLine">
1192 <summary>从当前流中读取一行字符并将数据作为字符串返回。</summary>
1193 <returns>输入流中的下一行;如果到达了输入流的末尾,则为 null。</returns>
1194 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1195 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1196 <filterpriority>1</filterpriority>
1198 <member name="M:System.IO.StreamReader.ReadLineAsync">
1199 <summary>从当前流中异步读取一行字符并将数据作为字符串返回。</summary>
1200 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含来自流的下一行;如果读取了所有字符,则为 null。</returns>
1201 <exception cref="T:System.ArgumentOutOfRangeException">下一行中的字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1202 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1203 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1205 <member name="M:System.IO.StreamReader.ReadToEnd">
1206 <summary>读取来自流的当前位置到结尾的所有字符。</summary>
1207 <returns>字符串形式的流的其余部分(从当前位置到结尾)。如果当前位置位于流结尾,则返回空字符串 (“”)。</returns>
1208 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1209 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1210 <filterpriority>1</filterpriority>
1212 <member name="M:System.IO.StreamReader.ReadToEndAsync">
1213 <summary>异步读取来自流的当前位置到结尾的所有字符并将它们作为一个字符串返回。</summary>
1214 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数值包括带有从流的当前位置到结尾的字符的字符串。</returns>
1215 <exception cref="T:System.ArgumentOutOfRangeException">字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1216 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1217 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1219 <member name="T:System.IO.StreamWriter">
1220 <summary>实现一个 <see cref="T:System.IO.TextWriter" />,使其以一种特定的编码向流中写入字符。若要浏览此类型的.NET Framework 源代码,请参阅参考源。</summary>
1221 <filterpriority>1</filterpriority>
1223 <member name="M:System.IO.StreamWriter.#ctor(System.IO.Stream)">
1224 <summary>用 UTF-8 编码及默认缓冲区大小,为指定的流初始化 <see cref="T:System.IO.StreamWriter" /> 类的一个新实例。</summary>
1225 <param name="stream">要写入的流。 </param>
1226 <exception cref="T:System.ArgumentException">
1227 <paramref name="stream" /> 不可写。 </exception>
1228 <exception cref="T:System.ArgumentNullException">
1229 <paramref name="stream" /> 为 null。</exception>
1231 <member name="M:System.IO.StreamWriter.#ctor(System.IO.Stream,System.Text.Encoding)">
1232 <summary>用指定的编码及默认缓冲区大小,为指定的流初始化 <see cref="T:System.IO.StreamWriter" /> 类的新实例。</summary>
1233 <param name="stream">要写入的流。</param>
1234 <param name="encoding">要使用的字符编码。 </param>
1235 <exception cref="T:System.ArgumentNullException">
1236 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。 </exception>
1237 <exception cref="T:System.ArgumentException">
1238 <paramref name="stream" /> 不可写。</exception>
1240 <member name="M:System.IO.StreamWriter.#ctor(System.IO.Stream,System.Text.Encoding,System.Int32)">
1241 <summary>用指定的编码及缓冲区大小,为指定的流初始化 <see cref="T:System.IO.StreamWriter" /> 类的新实例。</summary>
1242 <param name="stream">要写入的流。</param>
1243 <param name="encoding">要使用的字符编码。</param>
1244 <param name="bufferSize">缓冲区大小(以字节为单位)。 </param>
1245 <exception cref="T:System.ArgumentNullException">
1246 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。 </exception>
1247 <exception cref="T:System.ArgumentOutOfRangeException">
1248 <paramref name="bufferSize" /> 为负数。 </exception>
1249 <exception cref="T:System.ArgumentException">
1250 <paramref name="stream" /> 不可写。</exception>
1252 <member name="M:System.IO.StreamWriter.#ctor(System.IO.Stream,System.Text.Encoding,System.Int32,System.Boolean)">
1253 <summary>用指定的编码及默认缓冲区大小,为指定的流初始化 <see cref="T:System.IO.StreamWriter" /> 类的新实例,有选择性的打开流。</summary>
1254 <param name="stream">要写入的流。</param>
1255 <param name="encoding">要使用的字符编码。</param>
1256 <param name="bufferSize">缓冲区大小(以字节为单位)。</param>
1257 <param name="leaveOpen">true to leave the stream open after the <see cref="T:System.IO.StreamWriter" /> object is disposed; otherwise, false.</param>
1258 <exception cref="T:System.ArgumentNullException">
1259 <paramref name="stream" /> 或 <paramref name="encoding" /> 为 null。 </exception>
1260 <exception cref="T:System.ArgumentOutOfRangeException">
1261 <paramref name="bufferSize" /> 为负数。 </exception>
1262 <exception cref="T:System.ArgumentException">
1263 <paramref name="stream" /> 不可写。</exception>
1265 <member name="P:System.IO.StreamWriter.AutoFlush">
1266 <summary>获取或设置一个值,该值指示 <see cref="T:System.IO.StreamWriter" /> 是否在每次调用 <see cref="M:System.IO.StreamWriter.Write(System.Char)" /> 之后,将其缓冲区刷新到基础流。</summary>
1267 <returns>强制 <see cref="T:System.IO.StreamWriter" /> 刷新其缓冲区时,为 true;否则,为 false。</returns>
1268 <filterpriority>1</filterpriority>
1270 <member name="P:System.IO.StreamWriter.BaseStream">
1271 <summary>获取同后备存储连接的基础流。</summary>
1272 <returns>此 StreamWriter 正在写入的基础流。</returns>
1273 <filterpriority>2</filterpriority>
1275 <member name="M:System.IO.StreamWriter.Dispose(System.Boolean)">
1276 <summary>释放由 <see cref="T:System.IO.StreamWriter" /> 占用的非托管资源,还可以另外再释放托管资源。</summary>
1277 <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
1278 <exception cref="T:System.Text.EncoderFallbackException">当前编码不支持显示半个 Unicode 代理项对。</exception>
1280 <member name="P:System.IO.StreamWriter.Encoding">
1281 <summary>获取将输出写入到其中的 <see cref="T:System.Text.Encoding" />。</summary>
1282 <returns>在当前实例的构造函数中指定的 <see cref="T:System.Text.Encoding" />;或者如果未指定编码,则为 <see cref="T:System.Text.UTF8Encoding" />。</returns>
1283 <filterpriority>2</filterpriority>
1285 <member name="M:System.IO.StreamWriter.Flush">
1286 <summary>清理当前写入器的所有缓冲区,并使所有缓冲数据写入基础流。</summary>
1287 <exception cref="T:System.ObjectDisposedException">当前编写器已关闭。</exception>
1288 <exception cref="T:System.IO.IOException">出现 I/O 错误。</exception>
1289 <exception cref="T:System.Text.EncoderFallbackException">当前编码不支持显示半个 Unicode 代理项对。</exception>
1290 <filterpriority>1</filterpriority>
1292 <member name="M:System.IO.StreamWriter.FlushAsync">
1293 <summary>异步清除此流的所有缓冲区并导致所有缓冲数据都写入基础设备中。</summary>
1294 <returns>表示异步刷新操作的任务。</returns>
1295 <exception cref="T:System.ObjectDisposedException">流已被释放。</exception>
1297 <member name="F:System.IO.StreamWriter.Null">
1298 <summary>提供 StreamWriter,它不带任何可写入但无法从中读取的后备存储。</summary>
1299 <filterpriority>1</filterpriority>
1301 <member name="M:System.IO.StreamWriter.Write(System.Char)">
1302 <summary>将字符写入流。</summary>
1303 <param name="value">要写入流中的字符。</param>
1304 <exception cref="T:System.IO.IOException">发生 I/O 错误。 </exception>
1305 <exception cref="T:System.ObjectDisposedException">
1306 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且当前编写器已关闭。 </exception>
1307 <exception cref="T:System.NotSupportedException">
1308 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且由于 <see cref="T:System.IO.StreamWriter" /> 位于基础固定大小流的结尾,缓冲区的内容无法写入该流。</exception>
1309 <filterpriority>1</filterpriority>
1311 <member name="M:System.IO.StreamWriter.Write(System.Char[])">
1312 <summary>将字符数组写入流。</summary>
1313 <param name="buffer">包含要写入的数据的字符数组。如果 <paramref name="buffer" /> 为 null,则不写入任何内容。</param>
1314 <exception cref="T:System.IO.IOException">发生 I/O 错误。 </exception>
1315 <exception cref="T:System.ObjectDisposedException">
1316 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且当前编写器已关闭。 </exception>
1317 <exception cref="T:System.NotSupportedException">
1318 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且由于 <see cref="T:System.IO.StreamWriter" /> 位于基础固定大小流的结尾,缓冲区的内容无法写入该流。</exception>
1319 <filterpriority>1</filterpriority>
1321 <member name="M:System.IO.StreamWriter.Write(System.Char[],System.Int32,System.Int32)">
1322 <summary>将字符的子数组写入流。</summary>
1323 <param name="buffer">包含要写入的数据的字符数组。</param>
1324 <param name="index">在开始读取数据时缓冲区中的字符位置。</param>
1325 <param name="count">要写入的最大字符数。 </param>
1326 <exception cref="T:System.ArgumentNullException">
1327 <paramref name="buffer" /> 为 null。</exception>
1328 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。 </exception>
1329 <exception cref="T:System.ArgumentOutOfRangeException">
1330 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1331 <exception cref="T:System.IO.IOException">发生 I/O 错误。 </exception>
1332 <exception cref="T:System.ObjectDisposedException">
1333 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且当前编写器已关闭。 </exception>
1334 <exception cref="T:System.NotSupportedException">
1335 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且由于 <see cref="T:System.IO.StreamWriter" /> 位于基础固定大小流的结尾,缓冲区的内容无法写入该流。</exception>
1336 <filterpriority>1</filterpriority>
1338 <member name="M:System.IO.StreamWriter.Write(System.String)">
1339 <summary>将字符串写入流。</summary>
1340 <param name="value">要写入流的字符串。如果 <paramref name="value" /> 为 null,则不写入任何内容。</param>
1341 <exception cref="T:System.ObjectDisposedException">
1342 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且当前编写器已关闭。 </exception>
1343 <exception cref="T:System.NotSupportedException">
1344 <see cref="P:System.IO.StreamWriter.AutoFlush" /> 为 true 或 <see cref="T:System.IO.StreamWriter" /> 缓冲区已满,并且由于 <see cref="T:System.IO.StreamWriter" /> 位于基础固定大小流的结尾,缓冲区的内容无法写入该流。</exception>
1345 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1346 <filterpriority>1</filterpriority>
1348 <member name="M:System.IO.StreamWriter.WriteAsync(System.Char)">
1349 <summary>将字符异步写入该流。</summary>
1350 <returns>表示异步写操作的任务。</returns>
1351 <param name="value">要写入流中的字符。</param>
1352 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1353 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1355 <member name="M:System.IO.StreamWriter.WriteAsync(System.Char[],System.Int32,System.Int32)">
1356 <summary>将字符的子数组异步写入该流。</summary>
1357 <returns>表示异步写操作的任务。</returns>
1358 <param name="buffer">包含要写入的数据的字符数组。</param>
1359 <param name="index">在开始读取数据时缓冲区中的字符位置。</param>
1360 <param name="count">要写入的最大字符数。</param>
1361 <exception cref="T:System.ArgumentNullException">
1362 <paramref name="buffer" /> 为 null。</exception>
1363 <exception cref="T:System.ArgumentException">
1364 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
1365 <exception cref="T:System.ArgumentOutOfRangeException">
1366 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1367 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1368 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1370 <member name="M:System.IO.StreamWriter.WriteAsync(System.String)">
1371 <summary>将字符串异步写入该流。</summary>
1372 <returns>表示异步写操作的任务。</returns>
1373 <param name="value">要写入流的字符串。如果 <paramref name="value" /> 为 null,则不写入任何内容。</param>
1374 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1375 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1377 <member name="M:System.IO.StreamWriter.WriteLineAsync">
1378 <summary>将行终止符异步写入该流。</summary>
1379 <returns>表示异步写操作的任务。</returns>
1380 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1381 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1383 <member name="M:System.IO.StreamWriter.WriteLineAsync(System.Char)">
1384 <summary>将后跟行终止符的字符异步写入该流。</summary>
1385 <returns>表示异步写操作的任务。</returns>
1386 <param name="value">要写入流中的字符。</param>
1387 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1388 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1390 <member name="M:System.IO.StreamWriter.WriteLineAsync(System.Char[],System.Int32,System.Int32)">
1391 <summary>将后跟行终止符的字符的子数组异步写入该流。</summary>
1392 <returns>表示异步写操作的任务。</returns>
1393 <param name="buffer">要从中写出数据的字符数组。</param>
1394 <param name="index">在开始读取数据时缓冲区中的字符位置。</param>
1395 <param name="count">要写入的最大字符数。</param>
1396 <exception cref="T:System.ArgumentNullException">
1397 <paramref name="buffer" /> 为 null。</exception>
1398 <exception cref="T:System.ArgumentException">
1399 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
1400 <exception cref="T:System.ArgumentOutOfRangeException">
1401 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1402 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1403 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1405 <member name="M:System.IO.StreamWriter.WriteLineAsync(System.String)">
1406 <summary>将后跟行终止符的字符串异步写入该流。</summary>
1407 <returns>表示异步写操作的任务。</returns>
1408 <param name="value">要写入的字符串。如果值为 null,则只写入行终止符。</param>
1409 <exception cref="T:System.ObjectDisposedException">流编写器已被释放。</exception>
1410 <exception cref="T:System.InvalidOperationException">流编写器正在由其前一次写入操作使用。</exception>
1412 <member name="T:System.IO.StringReader">
1413 <summary>实现从字符串进行读取的 <see cref="T:System.IO.TextReader" />。</summary>
1414 <filterpriority>2</filterpriority>
1416 <member name="M:System.IO.StringReader.#ctor(System.String)">
1417 <summary>初始化从指定字符串进行读取的 <see cref="T:System.IO.StringReader" /> 类的新实例。</summary>
1418 <param name="s">应将 <see cref="T:System.IO.StringReader" /> 初始化为的字符串。</param>
1419 <exception cref="T:System.ArgumentNullException">
1420 <paramref name="s" /> 参数为 null。</exception>
1422 <member name="M:System.IO.StringReader.Dispose(System.Boolean)">
1423 <summary>释放由 <see cref="T:System.IO.StringReader" /> 占用的非托管资源,还可以另外再释放托管资源。</summary>
1424 <param name="disposing">true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。</param>
1426 <member name="M:System.IO.StringReader.Peek">
1427 <summary>返回下一个可用的字符,但不使用它。</summary>
1428 <returns>一个表示下一个要读取的字符的整数;如果没有更多可读取的字符或该流不支持查找,则为 -1。</returns>
1429 <exception cref="T:System.ObjectDisposedException">当前读取器已关闭。</exception>
1430 <filterpriority>2</filterpriority>
1432 <member name="M:System.IO.StringReader.Read">
1433 <summary>读取输入字符串中的下一个字符并将该字符的位置提升一个字符。</summary>
1434 <returns>基础字符串中的下一个字符,或者如果没有更多的可用字符,则为 -1。</returns>
1435 <exception cref="T:System.ObjectDisposedException">当前读取器已关闭。</exception>
1436 <filterpriority>2</filterpriority>
1438 <member name="M:System.IO.StringReader.Read(System.Char[],System.Int32,System.Int32)">
1439 <summary>读取输入字符串中的字符块,并将字符位置提升 <paramref name="count" />。</summary>
1440 <returns>读入缓冲区的总字符数。如果当前没有那么多字符可用,则总字符数可能会少于所请求的字符数,或者如果已到达基础字符串的结尾,则总字符数为零。</returns>
1441 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1442 <param name="index">缓存区中的起始索引。</param>
1443 <param name="count">要读取的字符数。</param>
1444 <exception cref="T:System.ArgumentNullException">
1445 <paramref name="buffer" /> 为 null。</exception>
1446 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
1447 <exception cref="T:System.ArgumentOutOfRangeException">
1448 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1449 <exception cref="T:System.ObjectDisposedException">当前读取器已关闭。</exception>
1450 <filterpriority>2</filterpriority>
1452 <member name="M:System.IO.StringReader.ReadAsync(System.Char[],System.Int32,System.Int32)">
1453 <summary>异步从当前字符串中读取指定数目的字符并从指定索引开始将该数据写入缓冲区。</summary>
1454 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可能小于所请求的字节数,或者如果已到达字符串的末尾时,则为 0(零)。</returns>
1455 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1456 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1457 <param name="count">最多读取的字符数。如果在写入指定数目的字符到缓冲区之前,就已经达到字符串的末尾,则方法返回。</param>
1458 <exception cref="T:System.ArgumentNullException">
1459 <paramref name="buffer" /> 为 null。</exception>
1460 <exception cref="T:System.ArgumentOutOfRangeException">
1461 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1462 <exception cref="T:System.ArgumentException">
1463 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1464 <exception cref="T:System.ObjectDisposedException">字符串读取器已被释放。</exception>
1465 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1467 <member name="M:System.IO.StringReader.ReadBlockAsync(System.Char[],System.Int32,System.Int32)">
1468 <summary>异步从当前字符串中读取指定数目的字符并从指定索引开始将该数据写入缓冲区。</summary>
1469 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可能小于所请求的字节数,或者如果已到达字符串的末尾时,则为 0(零)。</returns>
1470 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1471 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1472 <param name="count">最多读取的字符数。如果在写入指定数目的字符到缓冲区之前,就已经达到字符串的末尾,则方法返回。</param>
1473 <exception cref="T:System.ArgumentNullException">
1474 <paramref name="buffer" /> 为 null。</exception>
1475 <exception cref="T:System.ArgumentOutOfRangeException">
1476 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1477 <exception cref="T:System.ArgumentException">
1478 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1479 <exception cref="T:System.ObjectDisposedException">字符串读取器已被释放。</exception>
1480 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1482 <member name="M:System.IO.StringReader.ReadLine">
1483 <summary>从当前字符串中读取一行字符并将数据作为字符串返回。</summary>
1484 <returns>当前字符串中的下一行;或为 null (如果到达了字符串的末尾)。</returns>
1485 <exception cref="T:System.ObjectDisposedException">当前读取器已关闭。</exception>
1486 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1487 <filterpriority>2</filterpriority>
1489 <member name="M:System.IO.StringReader.ReadLineAsync">
1490 <summary>从当前字符串中异步读取一行字符并将数据作为字符串返回。</summary>
1491 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含来自字符串读取器的下一行或为 null 如果读取所有字符。</returns>
1492 <exception cref="T:System.ArgumentOutOfRangeException">下一行中的字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1493 <exception cref="T:System.ObjectDisposedException">字符串读取器已被释放。</exception>
1494 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1496 <member name="M:System.IO.StringReader.ReadToEnd">
1497 <summary>读取从当前位置到字符串的结尾的所有字符并将它们作为单个字符串返回。</summary>
1498 <returns>从当前位置到基础字符串的结尾之间的内容。</returns>
1499 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1500 <exception cref="T:System.ObjectDisposedException">当前读取器已关闭。</exception>
1501 <filterpriority>2</filterpriority>
1503 <member name="M:System.IO.StringReader.ReadToEndAsync">
1504 <summary>异步读取从当前位置到字符串的结尾的所有字符并将它们作为单个字符串返回。</summary>
1505 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数值包括字符串来自当前位置到结束字符串字符。</returns>
1506 <exception cref="T:System.ArgumentOutOfRangeException">字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1507 <exception cref="T:System.ObjectDisposedException">字符串读取器已被释放。</exception>
1508 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1510 <member name="T:System.IO.StringWriter">
1511 <summary>实现一个用于将信息写入字符串的 <see cref="T:System.IO.TextWriter" />。该信息存储在基础 <see cref="T:System.Text.StringBuilder" /> 中。</summary>
1512 <filterpriority>2</filterpriority>
1514 <member name="M:System.IO.StringWriter.#ctor">
1515 <summary>初始化 <see cref="T:System.IO.StringWriter" /> 类的新实例。</summary>
1517 <member name="M:System.IO.StringWriter.#ctor(System.IFormatProvider)">
1518 <summary>使用指定的格式控制初始化 <see cref="T:System.IO.StringWriter" /> 类的新实例。</summary>
1519 <param name="formatProvider">控制格式设置的 <see cref="T:System.IFormatProvider" /> 对象。</param>
1521 <member name="M:System.IO.StringWriter.#ctor(System.Text.StringBuilder)">
1522 <summary>初始化写入指定 <see cref="T:System.Text.StringBuilder" /> 的 <see cref="T:System.IO.StringWriter" /> 类的新实例。</summary>
1523 <param name="sb">要写入的 StringBuilder。</param>
1524 <exception cref="T:System.ArgumentNullException">
1525 <paramref name="sb" /> 为 null。</exception>
1527 <member name="M:System.IO.StringWriter.#ctor(System.Text.StringBuilder,System.IFormatProvider)">
1528 <summary>初始化写入指定 <see cref="T:System.Text.StringBuilder" /> 并具有指定格式提供程序的 <see cref="T:System.IO.StringWriter" /> 类的新实例。</summary>
1529 <param name="sb">要写入的 StringBuilder。</param>
1530 <param name="formatProvider">控制格式设置的 <see cref="T:System.IFormatProvider" /> 对象。</param>
1531 <exception cref="T:System.ArgumentNullException">
1532 <paramref name="sb" /> 为 null。</exception>
1534 <member name="M:System.IO.StringWriter.Dispose(System.Boolean)">
1535 <summary>释放由 <see cref="T:System.IO.StringWriter" /> 占用的非托管资源,还可以另外再释放托管资源。</summary>
1536 <param name="disposing">true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。</param>
1538 <member name="P:System.IO.StringWriter.Encoding">
1539 <summary>获取将输出写入到其中的 <see cref="T:System.Text.Encoding" />。</summary>
1540 <returns>用来写入输出的 Encoding。</returns>
1541 <filterpriority>1</filterpriority>
1543 <member name="M:System.IO.StringWriter.FlushAsync">
1544 <summary>异步清理当前编写器的所有缓冲区,使所有缓冲数据写入基础设备。</summary>
1545 <returns>表示异步刷新操作的任务。</returns>
1547 <member name="M:System.IO.StringWriter.GetStringBuilder">
1548 <summary>返回基础 <see cref="T:System.Text.StringBuilder" />。</summary>
1549 <returns>基础 StringBuilder。</returns>
1550 <filterpriority>2</filterpriority>
1552 <member name="M:System.IO.StringWriter.ToString">
1553 <summary>返回包含迄今为止写入到当前 StringWriter 中的字符的字符串。</summary>
1554 <returns>包含写入到当前 StringWriter 中的字符的字符串。</returns>
1555 <filterpriority>2</filterpriority>
1557 <member name="M:System.IO.StringWriter.Write(System.Char)">
1558 <summary>将字符写入该字符串。</summary>
1559 <param name="value">要写入的字符。</param>
1560 <exception cref="T:System.ObjectDisposedException">编写器已关闭。</exception>
1561 <filterpriority>2</filterpriority>
1563 <member name="M:System.IO.StringWriter.Write(System.Char[],System.Int32,System.Int32)">
1564 <summary>将字符的子数组写入该字符串。</summary>
1565 <param name="buffer">要从中写出数据的字符数组。</param>
1566 <param name="index">在开始读取数据缓存中的位置。</param>
1567 <param name="count">要写入的最大字符数。</param>
1568 <exception cref="T:System.ArgumentNullException">
1569 <paramref name="buffer" /> 为 null。</exception>
1570 <exception cref="T:System.ArgumentOutOfRangeException">
1571 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1572 <exception cref="T:System.ArgumentException">(<paramref name="index" /> + <paramref name="count" />)> <paramref name="buffer" />。Length.</exception>
1573 <exception cref="T:System.ObjectDisposedException">编写器已关闭。</exception>
1574 <filterpriority>2</filterpriority>
1576 <member name="M:System.IO.StringWriter.Write(System.String)">
1577 <summary>将字符串写入当前流。</summary>
1578 <param name="value">要写入的字符串。</param>
1579 <exception cref="T:System.ObjectDisposedException">编写器已关闭。</exception>
1580 <filterpriority>2</filterpriority>
1582 <member name="M:System.IO.StringWriter.WriteAsync(System.Char)">
1583 <summary>以异步方式将字符写入流。</summary>
1584 <returns>表示异步写入操作的任务。</returns>
1585 <param name="value">要写入字符串中的字符。</param>
1586 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1587 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1589 <member name="M:System.IO.StringWriter.WriteAsync(System.Char[],System.Int32,System.Int32)">
1590 <summary>将字符的子数组异步写入该字符串。</summary>
1591 <returns>表示异步写入操作的任务。</returns>
1592 <param name="buffer">要从中写出数据的字符数组。</param>
1593 <param name="index">在开始读取数据缓存中的位置。</param>
1594 <param name="count">要写入的最大字符数。</param>
1595 <exception cref="T:System.ArgumentNullException">
1596 <paramref name="buffer" /> 为 null。</exception>
1597 <exception cref="T:System.ArgumentException">
1598 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
1599 <exception cref="T:System.ArgumentOutOfRangeException">
1600 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1601 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1602 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1604 <member name="M:System.IO.StringWriter.WriteAsync(System.String)">
1605 <summary>以异步方式将字符串写入当前流。</summary>
1606 <returns>表示异步写入操作的任务。</returns>
1607 <param name="value">要写入的字符串。如果 <paramref name="value" /> 为 null,则不会将任何内容写入文本流。</param>
1608 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1609 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1611 <member name="M:System.IO.StringWriter.WriteLineAsync(System.Char)">
1612 <summary>以异步方式将后跟行结束符的字符写入该字符串。</summary>
1613 <returns>表示异步写入操作的任务。</returns>
1614 <param name="value">要写入字符串中的字符。</param>
1615 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1616 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1618 <member name="M:System.IO.StringWriter.WriteLineAsync(System.Char[],System.Int32,System.Int32)">
1619 <summary>将后跟行结束符的字符子数组异步写入该字符串。</summary>
1620 <returns>表示异步写入操作的任务。</returns>
1621 <param name="buffer">要从中写出数据的字符数组。</param>
1622 <param name="index">在开始读取数据缓存中的位置。</param>
1623 <param name="count">要写入的最大字符数。</param>
1624 <exception cref="T:System.ArgumentNullException">
1625 <paramref name="buffer" /> 为 null。</exception>
1626 <exception cref="T:System.ArgumentException">
1627 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
1628 <exception cref="T:System.ArgumentOutOfRangeException">
1629 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1630 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1631 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1633 <member name="M:System.IO.StringWriter.WriteLineAsync(System.String)">
1634 <summary>将一后跟行结束符的字符串异步写入当前字符串。</summary>
1635 <returns>表示异步写入操作的任务。</returns>
1636 <param name="value">要写入的字符串。如果值为 null,则只写入行终止符。</param>
1637 <exception cref="T:System.ObjectDisposedException">字符串编写器已被释放。</exception>
1638 <exception cref="T:System.InvalidOperationException">字符串编写器正在由其前一次写操作使用。</exception>
1640 <member name="T:System.IO.TextReader">
1641 <summary>表示可读取有序字符系列的读取器。</summary>
1642 <filterpriority>2</filterpriority>
1644 <member name="M:System.IO.TextReader.#ctor">
1645 <summary>初始化 <see cref="T:System.IO.TextReader" /> 类的新实例。</summary>
1647 <member name="M:System.IO.TextReader.Dispose">
1648 <summary>释放由 <see cref="T:System.IO.TextReader" /> 对象使用的所有资源。</summary>
1650 <member name="M:System.IO.TextReader.Dispose(System.Boolean)">
1651 <summary>释放由 <see cref="T:System.IO.TextReader" /> 占用的非托管资源,还可以释放托管资源。</summary>
1652 <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
1654 <member name="F:System.IO.TextReader.Null">
1655 <summary>提供一个无数据可供读取的 TextReader。</summary>
1656 <filterpriority>1</filterpriority>
1658 <member name="M:System.IO.TextReader.Peek">
1659 <summary>读取下一个字符,而不更改读取器状态或字符源。返回下一个可用字符,而实际上并不从读取器中读取此字符。</summary>
1660 <returns>一个表示下一个要读取的字符的整数;如果没有更多可读取的字符或该读取器不支持查找,则为 -1。</returns>
1661 <exception cref="T:System.ObjectDisposedException">
1662 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1663 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1664 <filterpriority>1</filterpriority>
1666 <member name="M:System.IO.TextReader.Read">
1667 <summary>读取文本读取器中的下一个字符并使该字符的位置前移一个字符。</summary>
1668 <returns>文本读取器中的下一个字符,或为 -1(如果没有更多可用字符)。默认实现将返回 -1。</returns>
1669 <exception cref="T:System.ObjectDisposedException">
1670 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1671 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1672 <filterpriority>1</filterpriority>
1674 <member name="M:System.IO.TextReader.Read(System.Char[],System.Int32,System.Int32)">
1675 <summary>从当前读取器中读取指定数目的字符并从指定索引开始将该数据写入缓冲区。</summary>
1676 <returns>已读取的字符数。该数会小于或等于 <paramref name="count" />,具体取决于读取器中是否有可用的数据。如果调用此方法时没有留下更多的字符供读取,则此方法返回 0(零)。</returns>
1677 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1678 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1679 <param name="count">要读取的最大字符数。如果在将指定数量的字符读入缓冲区之前就已达读取器的末尾,则返回该方法。</param>
1680 <exception cref="T:System.ArgumentNullException">
1681 <paramref name="buffer" /> 为 null。</exception>
1682 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。 </exception>
1683 <exception cref="T:System.ArgumentOutOfRangeException">
1684 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1685 <exception cref="T:System.ObjectDisposedException">
1686 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1687 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1688 <filterpriority>1</filterpriority>
1690 <member name="M:System.IO.TextReader.ReadAsync(System.Char[],System.Int32,System.Int32)">
1691 <summary>异步从当前文本读取器中读取指定最大字符数并从指定索引开始将该数据写入缓冲区。</summary>
1692 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可能小于所请求的字节数,或者如果已达到文本的末尾时,则为 0(零)。</returns>
1693 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1694 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1695 <param name="count">要读取的最大字符数。如果在将指定数量的字符读入缓冲区之前已到达文本的末尾,则当前方法将返回。</param>
1696 <exception cref="T:System.ArgumentNullException">
1697 <paramref name="buffer" /> 为 null。</exception>
1698 <exception cref="T:System.ArgumentOutOfRangeException">
1699 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1700 <exception cref="T:System.ArgumentException">
1701 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1702 <exception cref="T:System.ObjectDisposedException">文本读取器已被释放。</exception>
1703 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1705 <member name="M:System.IO.TextReader.ReadBlock(System.Char[],System.Int32,System.Int32)">
1706 <summary>从当前文本读取器中读取指定的最大字符数并从指定索引处开始将该数据写入缓冲区。</summary>
1707 <returns>已读取的字符数。该数字将小于或等于 <paramref name="count" />,具体取决于是否所有的输入字符都已读取。</returns>
1708 <param name="buffer">此方法返回时,此参数包含指定的字符数组,该数组中从 <paramref name="index" /> 到 (<paramref name="index" /> + <paramref name="count" /> -1) 之间的值由从当前源中读取的字符替换。</param>
1709 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1710 <param name="count">要读取的最大字符数。</param>
1711 <exception cref="T:System.ArgumentNullException">
1712 <paramref name="buffer" /> 为 null。</exception>
1713 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。 </exception>
1714 <exception cref="T:System.ArgumentOutOfRangeException">
1715 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1716 <exception cref="T:System.ObjectDisposedException">
1717 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1718 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1719 <filterpriority>2</filterpriority>
1721 <member name="M:System.IO.TextReader.ReadBlockAsync(System.Char[],System.Int32,System.Int32)">
1722 <summary>异步从当前文本读取器中读取指定最大字符数并从指定索引开始将该数据写入缓冲区。</summary>
1723 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含读入缓冲区的总字节数。如果当前可用字节数少于所请求的字节数,则该结果值可能小于所请求的字节数,或者如果已达到文本的末尾时,则为 0(零)。</returns>
1724 <param name="buffer">此方法返回时,包含指定的字符数组,该数组的 <paramref name="index" /> 和 (<paramref name="index" /> + <paramref name="count" /> - 1) 之间的值由从当前源中读取的字符替换。</param>
1725 <param name="index">在 <paramref name="buffer" /> 中开始写入的位置。</param>
1726 <param name="count">要读取的最大字符数。如果在将指定数量的字符读入缓冲区之前已到达文本的末尾,则当前方法将返回。</param>
1727 <exception cref="T:System.ArgumentNullException">
1728 <paramref name="buffer" /> 为 null。</exception>
1729 <exception cref="T:System.ArgumentOutOfRangeException">
1730 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1731 <exception cref="T:System.ArgumentException">
1732 <paramref name="index" /> 与 <paramref name="count" /> 的和大于缓冲区长度。</exception>
1733 <exception cref="T:System.ObjectDisposedException">文本读取器已被释放。</exception>
1734 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1736 <member name="M:System.IO.TextReader.ReadLine">
1737 <summary>从文本读取器中读取一行字符并将数据作为字符串返回。</summary>
1738 <returns>读取器中的下一行,或为 null (如果已读取了所有字符)。</returns>
1739 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1740 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1741 <exception cref="T:System.ObjectDisposedException">
1742 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1743 <exception cref="T:System.ArgumentOutOfRangeException">下一行中的字符数大于 <see cref="F:System.Int32.MaxValue" /></exception>
1744 <filterpriority>1</filterpriority>
1746 <member name="M:System.IO.TextReader.ReadLineAsync">
1747 <summary>异步读取一行字符并将数据作为字符串返回。</summary>
1748 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数的值包含来自文本读取器的下一行或为 null 如果读取所有字符。</returns>
1749 <exception cref="T:System.ArgumentOutOfRangeException">下一行中的字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1750 <exception cref="T:System.ObjectDisposedException">文本读取器已被释放。</exception>
1751 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1753 <member name="M:System.IO.TextReader.ReadToEnd">
1754 <summary>读取从当前位置到文本读取器末尾的所有字符并将它们作为一个字符串返回。</summary>
1755 <returns>一个包含从当前位置到文本读取器末尾的所有字符的字符串。</returns>
1756 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1757 <exception cref="T:System.ObjectDisposedException">
1758 <see cref="T:System.IO.TextReader" /> 是关闭的。</exception>
1759 <exception cref="T:System.OutOfMemoryException">内存不足,无法为返回的字符串分配缓冲区。</exception>
1760 <exception cref="T:System.ArgumentOutOfRangeException">下一行中的字符数大于 <see cref="F:System.Int32.MaxValue" /></exception>
1761 <filterpriority>1</filterpriority>
1763 <member name="M:System.IO.TextReader.ReadToEndAsync">
1764 <summary>异步读取从当前位置到文本读取器末尾的所有字符并将它们作为一个字符串返回。</summary>
1765 <returns>表示异步读取操作的任务。<paramref name="TResult" /> 参数值包括字符串来自当前位置到结束文本读取器字符。</returns>
1766 <exception cref="T:System.ArgumentOutOfRangeException">字符数大于 <see cref="F:System.Int32.MaxValue" />。</exception>
1767 <exception cref="T:System.ObjectDisposedException">文本读取器已被释放。</exception>
1768 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次读取操作使用。</exception>
1770 <member name="T:System.IO.TextWriter">
1771 <summary>表示可以编写一个有序字符系列的编写器。此类为抽象类。</summary>
1772 <filterpriority>2</filterpriority>
1774 <member name="M:System.IO.TextWriter.#ctor">
1775 <summary>初始化 <see cref="T:System.IO.TextWriter" /> 类的新实例。</summary>
1777 <member name="M:System.IO.TextWriter.#ctor(System.IFormatProvider)">
1778 <summary>使用指定的格式提供程序初始化 <see cref="T:System.IO.TextWriter" /> 类的新实例。</summary>
1779 <param name="formatProvider">控制格式设置的 <see cref="T:System.IFormatProvider" /> 对象。</param>
1781 <member name="F:System.IO.TextWriter.CoreNewLine">
1782 <summary>存储用于此 TextWriter 的换行符。</summary>
1784 <member name="M:System.IO.TextWriter.Dispose">
1785 <summary>释放由 <see cref="T:System.IO.TextWriter" /> 对象使用的所有资源。</summary>
1787 <member name="M:System.IO.TextWriter.Dispose(System.Boolean)">
1788 <summary>释放由 <see cref="T:System.IO.TextWriter" /> 占用的非托管资源,还可以释放托管资源。</summary>
1789 <param name="disposing">若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。</param>
1791 <member name="P:System.IO.TextWriter.Encoding">
1792 <summary>当在派生类中重写时,返回用来写输出的该字符编码。</summary>
1793 <returns>用来写入输出的字符编码。</returns>
1794 <filterpriority>1</filterpriority>
1796 <member name="M:System.IO.TextWriter.Flush">
1797 <summary>清理当前编写器的所有缓冲区,使所有缓冲数据写入基础设备。</summary>
1798 <filterpriority>1</filterpriority>
1800 <member name="M:System.IO.TextWriter.FlushAsync">
1801 <summary>异步清理当前编写器的所有缓冲区,使所有缓冲数据写入基础设备。</summary>
1802 <returns>表示异步刷新操作的任务。</returns>
1803 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
1804 <exception cref="T:System.InvalidOperationException">编写器正在由其前一次写操作使用。</exception>
1806 <member name="P:System.IO.TextWriter.FormatProvider">
1807 <summary>获取控制格式设置的对象。</summary>
1808 <returns>特定区域性的 <see cref="T:System.IFormatProvider" /> 对象,或者如果未指定任何其他区域性,则为当前区域性的格式设置。</returns>
1809 <filterpriority>2</filterpriority>
1811 <member name="P:System.IO.TextWriter.NewLine">
1812 <summary>获取或设置由当前 TextWriter 使用的行结束符字符串。</summary>
1813 <returns>当前 TextWriter 的行结束符字符串。</returns>
1814 <filterpriority>2</filterpriority>
1816 <member name="F:System.IO.TextWriter.Null">
1817 <summary>提供 TextWriter,它不带任何可写入但无法从中读取的后备存储。</summary>
1818 <filterpriority>1</filterpriority>
1820 <member name="M:System.IO.TextWriter.Write(System.Boolean)">
1821 <summary>将 Boolean 值的文本表示形式写入文本字符串或流。</summary>
1822 <param name="value">要写入的 Boolean 值。</param>
1823 <exception cref="T:System.ObjectDisposedException">
1824 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1825 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1826 <filterpriority>1</filterpriority>
1828 <member name="M:System.IO.TextWriter.Write(System.Char)">
1829 <summary>将字符写入该文本字符串或流。</summary>
1830 <param name="value">要写入文本流中的字符。</param>
1831 <exception cref="T:System.ObjectDisposedException">
1832 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1833 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1834 <filterpriority>1</filterpriority>
1836 <member name="M:System.IO.TextWriter.Write(System.Char[])">
1837 <summary>将字符数组写入该文本字符串或流。</summary>
1838 <param name="buffer">要写入文本流中的字符数组。</param>
1839 <exception cref="T:System.ObjectDisposedException">
1840 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1841 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1842 <filterpriority>1</filterpriority>
1844 <member name="M:System.IO.TextWriter.Write(System.Char[],System.Int32,System.Int32)">
1845 <summary>将字符的子数组写入文本字符串或流。</summary>
1846 <param name="buffer">要从中写出数据的字符数组。</param>
1847 <param name="index">在开始接收数据时缓存中的字符位置。</param>
1848 <param name="count">要写入的字符数。</param>
1849 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
1850 <exception cref="T:System.ArgumentNullException">
1851 <paramref name="buffer" /> 参数为 null。</exception>
1852 <exception cref="T:System.ArgumentOutOfRangeException">
1853 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
1854 <exception cref="T:System.ObjectDisposedException">
1855 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1856 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1857 <filterpriority>1</filterpriority>
1859 <member name="M:System.IO.TextWriter.Write(System.Decimal)">
1860 <summary>将十进制值的文本表示形式写入文本字符串或流。</summary>
1861 <param name="value">要写入的十进制值。</param>
1862 <exception cref="T:System.ObjectDisposedException">
1863 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1864 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1865 <filterpriority>1</filterpriority>
1867 <member name="M:System.IO.TextWriter.Write(System.Double)">
1868 <summary>将 8 字节浮点值的文本表示形式写入文本字符串或流。</summary>
1869 <param name="value">要写入的 8 字节浮点值。</param>
1870 <exception cref="T:System.ObjectDisposedException">
1871 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1872 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1873 <filterpriority>1</filterpriority>
1875 <member name="M:System.IO.TextWriter.Write(System.Int32)">
1876 <summary>将 4 字节有符号整数的文本表示形式写入文本字符串或流。</summary>
1877 <param name="value">要写入的 4 字节有符号整数。</param>
1878 <exception cref="T:System.ObjectDisposedException">
1879 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1880 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1881 <filterpriority>1</filterpriority>
1883 <member name="M:System.IO.TextWriter.Write(System.Int64)">
1884 <summary>将 8 字节有符号整数的文本表示形式写入文本字符串或流。</summary>
1885 <param name="value">要写入的 8 字节有符号整数。</param>
1886 <exception cref="T:System.ObjectDisposedException">
1887 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1888 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1889 <filterpriority>1</filterpriority>
1891 <member name="M:System.IO.TextWriter.Write(System.Object)">
1892 <summary>通过在对象上调用 ToString 方法将此对象的文本表示形式写入文本字符串或流。</summary>
1893 <param name="value">要写入的对象。</param>
1894 <exception cref="T:System.ObjectDisposedException">
1895 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1896 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1897 <filterpriority>1</filterpriority>
1899 <member name="M:System.IO.TextWriter.Write(System.Single)">
1900 <summary>将 4 字节浮点值的文本表示形式写入文本字符串或流。</summary>
1901 <param name="value">要写入的 4 字节浮点值。</param>
1902 <exception cref="T:System.ObjectDisposedException">
1903 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1904 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1905 <filterpriority>1</filterpriority>
1907 <member name="M:System.IO.TextWriter.Write(System.String)">
1908 <summary>以异步形式将字符串写入到文本字符串或流。</summary>
1909 <param name="value">要写入的字符串。</param>
1910 <exception cref="T:System.ObjectDisposedException">
1911 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1912 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1913 <filterpriority>1</filterpriority>
1915 <member name="M:System.IO.TextWriter.Write(System.String,System.Object)">
1916 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object)" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
1917 <param name="format">复合格式字符串(请参见“备注”)。</param>
1918 <param name="arg0">要格式化和写入的对象。</param>
1919 <exception cref="T:System.ArgumentNullException">
1920 <paramref name="format" /> 为 null。</exception>
1921 <exception cref="T:System.ObjectDisposedException">
1922 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1923 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1924 <exception cref="T:System.FormatException">
1925 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0)、或大于或等于要设置格式的对象数 (用于该方法重载,为一)。</exception>
1926 <filterpriority>1</filterpriority>
1928 <member name="M:System.IO.TextWriter.Write(System.String,System.Object,System.Object)">
1929 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object,System.Object)" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
1930 <param name="format">复合格式字符串(请参见“备注”)。</param>
1931 <param name="arg0">要格式化和写入的第一个对象。</param>
1932 <param name="arg1">要格式化和写入的第二个对象。</param>
1933 <exception cref="T:System.ArgumentNullException">
1934 <paramref name="format" /> 为 null。</exception>
1935 <exception cref="T:System.ObjectDisposedException">
1936 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1937 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1938 <exception cref="T:System.FormatException">
1939 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0) 或大于或等于要设置格式的对象数 (用于该方法重载,为二)。</exception>
1940 <filterpriority>1</filterpriority>
1942 <member name="M:System.IO.TextWriter.Write(System.String,System.Object,System.Object,System.Object)">
1943 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object,System.Object,System.Object)" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
1944 <param name="format">复合格式字符串(请参见“备注”)。</param>
1945 <param name="arg0">要格式化和写入的第一个对象。</param>
1946 <param name="arg1">要格式化和写入的第二个对象。</param>
1947 <param name="arg2">要设置格式和写入的第三个对象。</param>
1948 <exception cref="T:System.ArgumentNullException">
1949 <paramref name="format" /> 为 null。</exception>
1950 <exception cref="T:System.ObjectDisposedException">
1951 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1952 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1953 <exception cref="T:System.FormatException">
1954 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0)、或大于或等于要设置格式的对象数 (用于该方法重载,为三)。</exception>
1955 <filterpriority>1</filterpriority>
1957 <member name="M:System.IO.TextWriter.Write(System.String,System.Object[])">
1958 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object[])" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
1959 <param name="format">复合格式字符串(请参见“备注”)。</param>
1960 <param name="arg">一个对象数组,其中包含零个或多个要设置格式和写入的对象。</param>
1961 <exception cref="T:System.ArgumentNullException">
1962 <paramref name="format" /> 或 <paramref name="arg" /> 为 null。</exception>
1963 <exception cref="T:System.ObjectDisposedException">
1964 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1965 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1966 <exception cref="T:System.FormatException">
1967 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0(零)或大于等于 <paramref name="arg" /> 数组的长度。</exception>
1968 <filterpriority>1</filterpriority>
1970 <member name="M:System.IO.TextWriter.Write(System.UInt32)">
1971 <summary>将 4 字节无符号整数的文本表示形式写入文本字符串或流。</summary>
1972 <param name="value">要写入的 4 字节无符号整数。</param>
1973 <exception cref="T:System.ObjectDisposedException">
1974 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1975 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1976 <filterpriority>1</filterpriority>
1978 <member name="M:System.IO.TextWriter.Write(System.UInt64)">
1979 <summary>将 8 字节无符号整数的文本表示形式写入文本字符串或流。</summary>
1980 <param name="value">要写入的 8 字节无符号整数。</param>
1981 <exception cref="T:System.ObjectDisposedException">
1982 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
1983 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
1984 <filterpriority>1</filterpriority>
1986 <member name="M:System.IO.TextWriter.WriteAsync(System.Char)">
1987 <summary>以异步形式将字符写入到下一个文本字符串或流。</summary>
1988 <returns>表示异步写入操作的任务。</returns>
1989 <param name="value">要写入文本流中的字符。</param>
1990 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
1991 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
1993 <member name="M:System.IO.TextWriter.WriteAsync(System.Char[])">
1994 <summary>以异步形式将字符数组写入到下一个字符串或流。</summary>
1995 <returns>表示异步写入操作的任务。</returns>
1996 <param name="buffer">要写入文本流中的字符数组。如果 <paramref name="buffer" /> 为 null,则不写入任何内容。</param>
1997 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
1998 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2000 <member name="M:System.IO.TextWriter.WriteAsync(System.Char[],System.Int32,System.Int32)">
2001 <summary>将字符的子数组异步写入文本字符串或流。</summary>
2002 <returns>表示异步写入操作的任务。</returns>
2003 <param name="buffer">要从中写出数据的字符数组。</param>
2004 <param name="index">在开始接收数据时缓存中的字符位置。</param>
2005 <param name="count">要写入的字符数。</param>
2006 <exception cref="T:System.ArgumentNullException">
2007 <paramref name="buffer" /> 为 null。</exception>
2008 <exception cref="T:System.ArgumentException">
2009 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
2010 <exception cref="T:System.ArgumentOutOfRangeException">
2011 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
2012 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2013 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2015 <member name="M:System.IO.TextWriter.WriteAsync(System.String)">
2016 <summary>以异步形式将字符串写入到下一字符串或流。</summary>
2017 <returns>表示异步写入操作的任务。</returns>
2018 <param name="value">要写入的字符串。如果 <paramref name="value" /> 为 null,则不会将任何内容写入文本流。</param>
2019 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2020 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2022 <member name="M:System.IO.TextWriter.WriteLine">
2023 <summary>将行结束符的字符串写入文本字符串或流。</summary>
2024 <exception cref="T:System.ObjectDisposedException">
2025 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2026 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2027 <filterpriority>1</filterpriority>
2029 <member name="M:System.IO.TextWriter.WriteLine(System.Boolean)">
2030 <summary>将后面带有行结束符的 Boolean 值的文本表示形式写入文本字符串或流。</summary>
2031 <param name="value">要写入的 Boolean 值。</param>
2032 <exception cref="T:System.ObjectDisposedException">
2033 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2034 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2035 <filterpriority>1</filterpriority>
2037 <member name="M:System.IO.TextWriter.WriteLine(System.Char)">
2038 <summary>将后跟行结束符的字符写入文本字符串或流。</summary>
2039 <param name="value">要写入文本流中的字符。</param>
2040 <exception cref="T:System.ObjectDisposedException">
2041 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2042 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2043 <filterpriority>1</filterpriority>
2045 <member name="M:System.IO.TextWriter.WriteLine(System.Char[])">
2046 <summary>将后跟行结束符的字符数组写入文本字符串或流。</summary>
2047 <param name="buffer">从其读取数据的字符数组。</param>
2048 <exception cref="T:System.ObjectDisposedException">
2049 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2050 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2051 <filterpriority>1</filterpriority>
2053 <member name="M:System.IO.TextWriter.WriteLine(System.Char[],System.Int32,System.Int32)">
2054 <summary>将后跟行结束符的字符子数组写入文本字符串或流。</summary>
2055 <param name="buffer">从其读取数据的字符数组。</param>
2056 <param name="index">在开始读取数据时 <paramref name="buffer" /> 中的字符位置。</param>
2057 <param name="count">要写入的最大字符数。</param>
2058 <exception cref="T:System.ArgumentException">缓冲区长度减去 <paramref name="index" /> 小于 <paramref name="count" />。</exception>
2059 <exception cref="T:System.ArgumentNullException">
2060 <paramref name="buffer" /> 参数为 null。</exception>
2061 <exception cref="T:System.ArgumentOutOfRangeException">
2062 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
2063 <exception cref="T:System.ObjectDisposedException">
2064 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2065 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2066 <filterpriority>1</filterpriority>
2068 <member name="M:System.IO.TextWriter.WriteLine(System.Decimal)">
2069 <summary>将后面带有行结束符的十进制值的文本表示形式写入文本字符串或流。</summary>
2070 <param name="value">要写入的十进制值。</param>
2071 <exception cref="T:System.ObjectDisposedException">
2072 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2073 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2074 <filterpriority>1</filterpriority>
2076 <member name="M:System.IO.TextWriter.WriteLine(System.Double)">
2077 <summary>将后跟行结束符的 8 字节浮点值的文本表示形式写入文本字符串或流。</summary>
2078 <param name="value">要写入的 8 字节浮点值。</param>
2079 <exception cref="T:System.ObjectDisposedException">
2080 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2081 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2082 <filterpriority>1</filterpriority>
2084 <member name="M:System.IO.TextWriter.WriteLine(System.Int32)">
2085 <summary>将后跟行结束符的 4 字节有符号整数的文本表示形式写入文本字符串或流。</summary>
2086 <param name="value">要写入的 4 字节有符号整数。</param>
2087 <exception cref="T:System.ObjectDisposedException">
2088 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2089 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2090 <filterpriority>1</filterpriority>
2092 <member name="M:System.IO.TextWriter.WriteLine(System.Int64)">
2093 <summary>将后跟行结束符的 8 字节有符号整数的文本表示形式写入文本字符串或流。</summary>
2094 <param name="value">要写入的 8 字节有符号整数。</param>
2095 <exception cref="T:System.ObjectDisposedException">
2096 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2097 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2098 <filterpriority>1</filterpriority>
2100 <member name="M:System.IO.TextWriter.WriteLine(System.Object)">
2101 <summary>通过在对象上调用 ToString 方法将后跟行结束符的此对象的文本表示形式写入文本字符串或流。</summary>
2102 <param name="value">要写入的对象。如果 <paramref name="value" /> 为 null,则只写入行终止符。</param>
2103 <exception cref="T:System.ObjectDisposedException">
2104 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2105 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2106 <filterpriority>1</filterpriority>
2108 <member name="M:System.IO.TextWriter.WriteLine(System.Single)">
2109 <summary>将后跟行结束符的 4 字节浮点值的文本表示形式写入文本字符串或流。</summary>
2110 <param name="value">要写入的 4 字节浮点值。</param>
2111 <exception cref="T:System.ObjectDisposedException">
2112 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2113 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2114 <filterpriority>1</filterpriority>
2116 <member name="M:System.IO.TextWriter.WriteLine(System.String)">
2117 <summary>将后跟行结束符的字符串写入文本字符串或流。</summary>
2118 <param name="value">要写入的字符串。如果 <paramref name="value" /> 为 null,则只写入行终止符。</param>
2119 <exception cref="T:System.ObjectDisposedException">
2120 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2121 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2122 <filterpriority>1</filterpriority>
2124 <member name="M:System.IO.TextWriter.WriteLine(System.String,System.Object)">
2125 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object)" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
2126 <param name="format">复合格式字符串(请参见“备注”)。</param>
2127 <param name="arg0">要格式化和写入的对象。</param>
2128 <exception cref="T:System.ArgumentNullException">
2129 <paramref name="format" /> 为 null。</exception>
2130 <exception cref="T:System.ObjectDisposedException">
2131 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2132 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2133 <exception cref="T:System.FormatException">
2134 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0)、或大于或等于要设置格式的对象数 (用于该方法重载,为一)。</exception>
2135 <filterpriority>1</filterpriority>
2137 <member name="M:System.IO.TextWriter.WriteLine(System.String,System.Object,System.Object)">
2138 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object,System.Object)" /> 方法相同的语义将格式化字符串和新行写入文本字符串或流。</summary>
2139 <param name="format">复合格式字符串(请参见“备注”)。</param>
2140 <param name="arg0">要格式化和写入的第一个对象。</param>
2141 <param name="arg1">要格式化和写入的第二个对象。</param>
2142 <exception cref="T:System.ArgumentNullException">
2143 <paramref name="format" /> 为 null。</exception>
2144 <exception cref="T:System.ObjectDisposedException">
2145 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2146 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2147 <exception cref="T:System.FormatException">
2148 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0)、或大于或等于要设置格式的对象数 (用于该方法重载,为二)。</exception>
2149 <filterpriority>1</filterpriority>
2151 <member name="M:System.IO.TextWriter.WriteLine(System.String,System.Object,System.Object,System.Object)">
2152 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object)" /> 相同的语义写出格式化的字符串和一个新行。</summary>
2153 <param name="format">复合格式字符串(请参见“备注”)。</param>
2154 <param name="arg0">要格式化和写入的第一个对象。</param>
2155 <param name="arg1">要格式化和写入的第二个对象。</param>
2156 <param name="arg2">要设置格式和写入的第三个对象。</param>
2157 <exception cref="T:System.ArgumentNullException">
2158 <paramref name="format" /> 为 null。</exception>
2159 <exception cref="T:System.ObjectDisposedException">
2160 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2161 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2162 <exception cref="T:System.FormatException">
2163 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0 (0)、或大于或等于要设置格式的对象数 (用于该方法重载,为三)。</exception>
2164 <filterpriority>1</filterpriority>
2166 <member name="M:System.IO.TextWriter.WriteLine(System.String,System.Object[])">
2167 <summary>使用与 <see cref="M:System.String.Format(System.String,System.Object)" /> 相同的语义写出格式化的字符串和一个新行。</summary>
2168 <param name="format">复合格式字符串(请参见“备注”)。</param>
2169 <param name="arg">一个对象数组,其中包含零个或多个要设置格式和写入的对象。</param>
2170 <exception cref="T:System.ArgumentNullException">字符串或对象作为 null 传入。</exception>
2171 <exception cref="T:System.ObjectDisposedException">
2172 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2173 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2174 <exception cref="T:System.FormatException">
2175 <paramref name="format" /> 不是有效的复合格式字符串。- 或 - 格式项的索引小于 0(零)或大于等于 <paramref name="arg" /> 数组的长度。</exception>
2176 <filterpriority>1</filterpriority>
2178 <member name="M:System.IO.TextWriter.WriteLine(System.UInt32)">
2179 <summary>将后跟行结束符的 4 字节无符号整数的文本表示形式写入文本字符串或流。</summary>
2180 <param name="value">要写入的 4 字节无符号整数。</param>
2181 <exception cref="T:System.ObjectDisposedException">
2182 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2183 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2184 <filterpriority>1</filterpriority>
2186 <member name="M:System.IO.TextWriter.WriteLine(System.UInt64)">
2187 <summary>将后跟行结束符的 8 字节无符号整数的文本表示形式写入文本字符串或流。</summary>
2188 <param name="value">要写入的 8 字节无符号整数。</param>
2189 <exception cref="T:System.ObjectDisposedException">
2190 <see cref="T:System.IO.TextWriter" /> 是关闭的。</exception>
2191 <exception cref="T:System.IO.IOException">发生 I/O 错误。</exception>
2192 <filterpriority>1</filterpriority>
2194 <member name="M:System.IO.TextWriter.WriteLineAsync">
2195 <summary>将行结束符的字符串异步写入文本字符串或流。</summary>
2196 <returns>表示异步写入操作的任务。</returns>
2197 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2198 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2200 <member name="M:System.IO.TextWriter.WriteLineAsync(System.Char)">
2201 <summary>将后跟行结束符的字符异步写入文本字符串或流。</summary>
2202 <returns>表示异步写入操作的任务。</returns>
2203 <param name="value">要写入文本流中的字符。</param>
2204 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2205 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2207 <member name="M:System.IO.TextWriter.WriteLineAsync(System.Char[])">
2208 <summary>将后跟行结束符的字符数组异步写入文本字符串或流。</summary>
2209 <returns>表示异步写入操作的任务。</returns>
2210 <param name="buffer">要写入文本流中的字符数组。如果字符数组为 null,则仅写入行结束符。</param>
2211 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2212 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2214 <member name="M:System.IO.TextWriter.WriteLineAsync(System.Char[],System.Int32,System.Int32)">
2215 <summary>将后跟行结束符的字符子数组异步写入文本字符串或流。</summary>
2216 <returns>表示异步写入操作的任务。</returns>
2217 <param name="buffer">要从中写出数据的字符数组。</param>
2218 <param name="index">在开始接收数据时缓存中的字符位置。</param>
2219 <param name="count">要写入的字符数。</param>
2220 <exception cref="T:System.ArgumentNullException">
2221 <paramref name="buffer" /> 为 null。</exception>
2222 <exception cref="T:System.ArgumentException">
2223 <paramref name="index" /> plus <paramref name="count" /> 大于缓冲区长度。</exception>
2224 <exception cref="T:System.ArgumentOutOfRangeException">
2225 <paramref name="index" /> 或 <paramref name="count" /> 为负。</exception>
2226 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2227 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>
2229 <member name="M:System.IO.TextWriter.WriteLineAsync(System.String)">
2230 <summary>将后跟行结束符的字符串异步写入文本字符串或流。</summary>
2231 <returns>表示异步写入操作的任务。</returns>
2232 <param name="value">要写入的字符串。如果值为 null,则只写入行终止符。</param>
2233 <exception cref="T:System.ObjectDisposedException">文本编写器已被释放。</exception>
2234 <exception cref="T:System.InvalidOperationException">文本编写器正在由其前一次写操作使用。</exception>