ResolvedResource ClassResolvedResource ClassResolvedResource Class
A resource that has been returned from a resource resolver.
Inheritance Hierarchy
- System.ObjectSystem.ObjectSystem::Object
- XmlPrime.ResolvedResourceXmlPrime.ResolvedResourceXmlPrime::ResolvedResource
The ResolvedResourceResolvedResourceResolvedResource
type exposes the following members.
Constructors
Constructor | Description | |
---|---|---|
![]() | ResolvedResource (Stream)ResolvedResource (Stream)ResolvedResource (Stream^) | Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class. |
![]() | ResolvedResource (Stream, string)ResolvedResource (Stream, String)ResolvedResource (Stream^, String^) | Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class. |
![]() | ResolvedResource (Stream, Encoding)ResolvedResource (Stream, Encoding)ResolvedResource (Stream^, Encoding^) | Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class. |
Properties
Property | Description | |
---|---|---|
![]() | EncodingEncodingEncoding | Gets the encoding used by the resource, if it has been resolved. |
![]() | EncodingNameEncodingNameEncodingName | Gets the name of the encoding used by the resource. |
Methods
Remarks
The encoding used to read a resource as unparsed text is determined as follows:
-
The encoding specified by the ResolvedResourceResolvedResourceResolvedResource is used if it is not
null
a null reference (Nothing
in Visual Basic)nullptr
. - If the resource contains an XML declaration then the encoding is recognized as by the XML specification.
-
If an encoding was passed to the
unparsed-text
function, then this encoding is used. -
If none of the above cases apply, then
UTF-8
is assumed.