StringCollectionTextWriter Class¶
Summary¶
A [System.IO.TextWriter]() that represents individual write operations as a sequence of strings.
Inheritance Hierarchy¶
System.Object
System.MarshalByRefObject
System.IO.TextWriter
Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter
Constructors¶
-
StringCollectionTextWriter
(System.Text.Encoding)¶ Creates a new instance of [Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter](Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.yml).
Arguments: - encoding (System.Text.Encoding) – The character [Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.Encoding](Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.yml) in which the output is written.
public StringCollectionTextWriter(Encoding encoding)
-
Properties¶
-
Encoding
()¶ Return type: System.Text.Encoding public override Encoding Encoding { get; }
-
Methods¶
-
CopyTo
(System.IO.TextWriter)¶ Arguments: - writer (System.IO.TextWriter) –
public void CopyTo(TextWriter writer)
-
CopyToAsync
(System.IO.TextWriter)¶ Arguments: - writer (System.IO.TextWriter) –
Return type: System.Threading.Tasks.Task
public Task CopyToAsync(TextWriter writer)
-
Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.ToString()
Return type: System.String public override string ToString()
-
Write
(System.Char)¶ Arguments: - value (System.Char) –
public override void Write(char value)
-
Write
(System.Char[], System.Int32, System.Int32) Arguments: - buffer (System.Char[]) –
- index (System.Int32) –
- count (System.Int32) –
public override void Write(char[] buffer, int index, int count)
-
Write
(System.String) Arguments: - value (System.String) –
public override void Write(string value)
-
WriteAsync
(System.Char)¶ Arguments: - value (System.Char) –
Return type: System.Threading.Tasks.Task
public override Task WriteAsync(char value)
-
WriteAsync
(System.Char[], System.Int32, System.Int32) Arguments: - buffer (System.Char[]) –
- index (System.Int32) –
- count (System.Int32) –
Return type: System.Threading.Tasks.Task
public override Task WriteAsync(char[] buffer, int index, int count)
-
WriteAsync
(System.String) Arguments: - value (System.String) –
Return type: System.Threading.Tasks.Task
public override Task WriteAsync(string value)
-
Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.WriteLine()
public override void WriteLine()
-
WriteLine
(System.String)¶ Arguments: - value (System.String) –
public override void WriteLine(string value)
-
Microsoft.AspNet.Mvc.Rendering.StringCollectionTextWriter.WriteLineAsync()
Return type: System.Threading.Tasks.Task public override Task WriteLineAsync()
-
WriteLineAsync
(System.Char)¶ Arguments: - value (System.Char) –
Return type: System.Threading.Tasks.Task
public override Task WriteLineAsync(char value)
-
WriteLineAsync
(System.Char[], System.Int32, System.Int32) Arguments: - value (System.Char[]) –
- start (System.Int32) –
- offset (System.Int32) –
Return type: System.Threading.Tasks.Task
public override Task WriteLineAsync(char[] value, int start, int offset)
-
WriteLineAsync
(System.String) Arguments: - value (System.String) –
Return type: System.Threading.Tasks.Task
public override Task WriteLineAsync(string value)
-