StreamReader Constructor

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

Initializes a new instance of the StreamReader class for the specified 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 StreamReader(Stream) Initializes a new instance of the StreamReader class for the specified stream.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(String) When it is called by trusted applications, initializes a new instance of the StreamReader class for the specified file name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(Stream, Boolean) Initializes a new instance of the StreamReader class for the specified stream, using the specified byte order mark detection option.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(Stream, Encoding) Initializes a new instance of the StreamReader class for the specified stream, using the specified character encoding.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(String, Boolean) When it is called by trusted applications, initializes a new instance of the StreamReader class for the specified file name, using the specified byte order mark detection option.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(String, Encoding) When it is called by trusted applications, initializes a new instance of the StreamReader class for the specified file name, using the specified character encoding.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(Stream, Encoding, Boolean) Initializes a new instance of the StreamReader class for the specified stream, using the specified character encoding and byte order mark detection option.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(String, Encoding, Boolean) When it is called by trusted applications, initializes a new instance of the StreamReader class for the specified file name, using the specified character encoding and byte order mark detection option.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(Stream, Encoding, Boolean, Int32) Initializes a new instance of the StreamReader class for the specified stream, using the specified character encoding, byte order mark detection option, and buffer size.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 StreamReader(String, Encoding, Boolean, Int32) When it is called by trusted applications, initializes a new instance of the StreamReader class for the specified file name, using the specified character encoding, byte order mark detection option, and buffer size.

Top