ResolvedResource Constructor (Stream, string, string)ResolvedResource Constructor (Stream, String, String)ResolvedResource Constructor (Stream^, String^, String^)
Syntax
Public Sub New ( _ stream As System.IO.Stream, _ encodingName As String, _ mediaType As String _ )
public ResolvedResource( System.IO.Stream stream, string encodingName, string mediaType )
public: ResolvedResource( System.IO::Stream^ stream, String^ encodingName, String^ mediaType )
Parameters
- stream
Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^
The resource.
- encodingName
Type: System.StringSystem.StringSystem::String^
The encoding of the resource (or
nulla null reference (Nothingin Visual Basic)nullptrif this is not known).- mediaType
Type: System.StringSystem.StringSystem::String^
The media type of the resource (or
nulla null reference (Nothingin Visual Basic)nullptrif 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, or contains a charset parameter that refers to a
different encoding that referred to by encodingName.
|
Remarks
If the media type has acharset parameter and encodingName is null
a null reference (Nothing in Visual Basic)
nullptr
then the charset parameter is used to identify the encoding.
