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

Initializes a new instance of the ResolvedResourceResolvedResourceResolvedResource class.

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 null a null reference (Nothing in Visual Basic) nullptr if this is not known).

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.
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 a charset parameter and encodingName is null a null reference (Nothing in Visual Basic) nullptr then the charset parameter is used to identify the encoding.