IResolvedResource.GetTextReader MethodIResolvedResource.GetTextReader MethodIResolvedResource::GetTextReader Method
- XmlPrime 4.0
- Other Versions ▼
Syntax
Function GetTextReader( _ encoding As System.Text.Encoding _ ) As System.IO.TextReader
System.IO.TextReader GetTextReader( System.Text.Encoding encoding )
System.IO::TextReader^ GetTextReader( System.Text::Encoding^ encoding )
Parameters
- encoding
Type: System.Text.EncodingSystem.Text.EncodingSystem.Text::Encoding^
The encoding to use if it has not been specified. This is equivalent to the
$encoding
argument onfn:unparsed-text
.
Return Value
Type: System.IO.TextReaderSystem.IO.TextReaderSystem.IO::TextReader^
A TextReaderTextReaderTextReader over the resource.
Exceptions
Exception | Condition |
XmlExceptionXmlExceptionXmlException | The encoding specified is not supported. |
Remarks
This will cause the encoding of the resource to be set, if it has not been already.
The behavior of this method is the same as the unparsed-text
function.