Initializes a new instance of a AlternateView
with the content of the supplied stream and with a media type.
Namespace:
Rebex.Mail
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ contentStream As Stream, _ mediaType As String _ ) |
C# |
---|
public AlternateView( Stream contentStream, string mediaType ) |
Parameters
- contentStream
- Type: System.IO..::..Stream
Stream from which the data will be read.
- mediaType
- Type: System..::..String
A MIME media type of the file.