ResolvedResource ClassResolvedResource ClassResolvedResource Class

A resource that has been returned from an IResourceResolverIResourceResolverIResourceResolver.

Inheritance Hierarchy

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

 ConstructorDescription
Public methodResolvedResource (Stream)ResolvedResource (Stream)ResolvedResource (Stream^) Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.
Public methodResolvedResource (Stream, string)ResolvedResource (Stream, String)ResolvedResource (Stream^, String^) Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.
Public methodResolvedResource (Stream, string, string)ResolvedResource (Stream, String, String)ResolvedResource (Stream^, String^, String^) Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.
Public methodResolvedResource (Stream, Encoding, string)ResolvedResource (Stream, Encoding, String)ResolvedResource (Stream^, Encoding^, String^) Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.

Top

Properties

 PropertyDescription
Public propertyEncodingEncodingEncoding Gets the encoding used by the resource, if it has been resolved.
Public propertyEncodingNameEncodingNameEncodingName Gets the name of the encoding used by the resource.
Public propertyMediaTypeMediaTypeMediaType Gets or sets the media-type of the resolved resource.

Top

Methods

 MethodDescription
Public methodObject.EqualsObject.EqualsObject::EqualsDetermines whether the specified object is equal to the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCodeServes as the default hash function. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetStreamGetStreamGetStream Gets a StreamStreamStream over the resource.
Public methodGetTextReader ()GetTextReader ()GetTextReader () Gets a TextReaderTextReaderTextReader over the resource.
Public methodGetTextReader (Encoding)GetTextReader (Encoding)GetTextReader (Encoding^) Gets a TextReaderTextReaderTextReader over the resource.
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToStringReturns a string that represents the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Remarks

The encoding used to read a resource as unparsed text is determined as follows:

  1. The encoding specified by the ResolvedResourceResolvedResourceResolvedResource is used if it is not null a null reference (Nothing in Visual Basic) nullptr.
  2. If the media type is an XML media type then the encoding is recognized as by the XML specification.
  3. If an encoding was passed to the unparsed-text function, then this encoding is used.
  4. If a byte order mark is present, then either UTF-32, UTF-16 or UTF-8 is assumed based on the byte order mark
  5. If none of the above cases apply, then UTF-8 is assumed.