Sets the content of this entity to data read from the specified stream and sets media type and file name.
Namespace:
Rebex.Mime
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub SetContent ( _ source As Stream, _ name As String, _ mediaType As String _ ) |
C# |
---|
public void SetContent( Stream source, string name, string mediaType ) |
Parameters
- source
- Type: System.IO..::..Stream
Source stream to read data from.
- name
- Type: System..::..String
File name to assign to the content, or null if no file name is to be assigned.
- mediaType
- Type: System..::..String
Media type.