Sets the content of this view to data read from the specified stream and sets media type.
Namespace:
Rebex.MailAssembly: Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.4086.0
Syntax
| C# |
|---|
public void SetContent( Stream contentStream, string mediaType ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetContent ( _ contentStream As Stream, _ mediaType As String _ ) |
| Visual C++ |
|---|
public: void SetContent( Stream^ contentStream, String^ mediaType ) |
Parameters
- contentStream
- Type: System.IO..::.Stream
Stream from which the data will be read.
- mediaType
- Type: System..::.String
Media type.