NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StreamReader.SwitchEncoding

Switches the current stream's encoding to the new encoding.

Overload List

Switches the current stream's encoding to the new one, reading from the current position onward.

[Visual Basic] Overloads Overridable Public Sub SwitchEncoding(Encoding)
[C#] public virtual void SwitchEncoding(Encoding);
[C++] public: virtual void SwitchEncoding(Encoding*);
[JScript] public function SwitchEncoding(Encoding);

Switches the current stream's encoding to the new one, reading from the specified character position onward.

[Visual Basic] Overloads Overridable Public Sub SwitchEncoding(Encoding, Integer)
[C#] public virtual void SwitchEncoding(Encoding, int);
[C++] public: virtual void SwitchEncoding(Encoding*, int);
[JScript] public function SwitchEncoding(Encoding, int);

See Also

StreamReader Class | StreamReader Members | System.IO Namespace