共用方式為


StreamWriter.Write Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

When it is called by trusted applications, writes to the stream.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Boolean) Writes the text representation of a Boolean value to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Char) When it is called by trusted applications, writes a character to the stream. (Overrides TextWriter.Write(Char).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(array<Char[]) When it is called by trusted applications, writes a character array to the stream. (Overrides TextWriter.Write(array<Char[]).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Decimal) Writes the text representation of a decimal value to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Double) Writes the text representation of an 8-byte floating-point value to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Int32) Writes the text representation of a 4-byte signed integer to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Int64) Writes the text representation of an 8-byte signed integer to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Object) Writes the text representation of an object to the text stream by calling ToString on that object. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(Single) Writes the text representation of a 4-byte floating-point value to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(String) When it is called by trusted applications, writes a string to the stream. (Overrides TextWriter.Write(String).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(UInt32) Writes the text representation of a 4-byte unsigned integer to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(UInt64) Writes the text representation of an 8-byte unsigned integer to the text stream. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(String, Object) Writes out a formatted string, using the same semantics as String.Format. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(String, array<Object[]) Writes out a formatted string, using the same semantics as String.Format. (Inherited from TextWriter.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(array<Char[], Int32, Int32) When it is called by trusted applications, writes a subarray of characters to the stream. (Overrides TextWriter.Write(array<Char[], Int32, Int32).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Write(String, Object, Object) Writes out a formatted string, using the same semantics as String.Format. (Inherited from TextWriter.)

Top