ResolvedResource Constructor (Stream, string)ResolvedResource Constructor (Stream, String)ResolvedResource Constructor (Stream^, String^)
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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | stream is null
a null reference (Nothing in Visual Basic)
nullptr . |
ArgumentExceptionArgumentExceptionArgumentException | mediaType is not a valid media type. |
Remarks
If the media type has acharset
parameter then the charset
parameter is used to identify the encoding.