ResolvedResource Constructor (Stream, string)ResolvedResource Constructor (Stream, String)ResolvedResource Constructor (Stream^, String^)

Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.

Syntax

Public Sub New ( _
    stream As System.IO.Stream, _
    mediaType As String _
)
public ResolvedResource(
    System.IO.Stream stream,
    string mediaType
)
public:
ResolvedResource(
    System.IO::Stream^ stream, 
    String^ mediaType
)
 

Parameters

stream

Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^

The resource.

mediaType

Type: System.StringSystem.StringSystem::String^

The media type of the resource (or null a null reference (Nothing in Visual Basic) nullptr if this is not known).

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionstream is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionmediaType is not a valid media type.

Remarks

If the media type has a charset parameter then the charset parameter is used to identify the encoding.