ResolvedResource ClassResolvedResource ClassResolvedResource Class
Inheritance Hierarchy
- System.ObjectSystem.ObjectSystem::Object
- XmlPrime.ResolvedResourceXmlPrime.ResolvedResourceXmlPrime::ResolvedResource
Syntax
Public NotInheritable Class ResolvedResource _ Implements IResolvedResource
public sealed class ResolvedResource : IResolvedResource
public: ref class ResolvedResource sealed : IResolvedResource^
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, string, string)ResolvedResource (Stream, String, String)ResolvedResource (Stream^, String^, String^) | Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class. | |
| ResolvedResource (Stream, Encoding, string)ResolvedResource (Stream, Encoding, String)ResolvedResource (Stream^, Encoding^, String^) | 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. | |
| MediaTypeMediaTypeMediaType | Gets or sets the media-type of the resolved 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
nulla null reference (Nothingin Visual Basic)nullptr. - If the media type is an XML media type then the encoding is recognized as by the XML specification.
-
If an encoding was passed to the
unparsed-textfunction, then this encoding is used. -
If a byte order mark is present, then either
UTF-32,UTF-16orUTF-8is assumed based on the byte order mark -
If none of the above cases apply, then
UTF-8is assumed.
