Sets the content of this entity to data read from the specified stream.
Namespace:
Rebex.Mime
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub SetContent ( _ source As Stream _ ) |
C# |
---|
public void SetContent( Stream source ) |
Parameters
- source
- Type: System.IO..::..Stream
Source stream to read data from.
Remarks
File name is not set automatically. Set it manually using Name if needed.
Media type is set to 'application/octet-stream'.