DocumentSet.UnparsedText MethodDocumentSet.UnparsedText MethodDocumentSet::UnparsedText Method

Returns a stringStringString containing the unparsed text of a resource with the specified URI.

Syntax

Public Overridable Function UnparsedText( _
    uri As AnyUri, _
    encoding As System.Text.Encoding _
) As String
public virtual string UnparsedText(
    AnyUri uri,
    System.Text.Encoding encoding
)
public:
virtual String^ UnparsedText(
    AnyUri^ uri, 
    System.Text::Encoding^ encoding
)
 

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The URI of the unparsed text resource to be retrieved.

encoding

Type: System.Text.EncodingSystem.Text.EncodingSystem.Text::Encoding^

The encoding used to decode the resource.

Return Value

Type: System.StringSystem.StringSystem::String^

A stringStringString containing the unparsed text of the resource, or null a null reference (Nothing in Visual Basic) nullptr if the URI was not handled.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentException uri is not an absolute URI, or uri contains a fragment identifier.
XdmExceptionXdmExceptionXdmException A previous attempt to retrieve the resource failed.
XmlExceptionXmlExceptionXmlException There was an error decoding the resources.
ExceptionExceptionException An error occurred retrieving the resource.