Sets the content of this attachment to data read from the specified stream and sets file name.
Namespace:
Rebex.MailAssembly: Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.3844.0
Syntax
| C# |
|---|
public void SetContent( Stream source, string name ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetContent ( _ source As Stream, _ name As String _ ) |
| Visual C++ |
|---|
public: void SetContent( Stream^ source, String^ name ) |
Parameters
- source
- Type: System.IO..::.Stream
Source stream to read data from.
- name
- Type: System..::.String
File name to assign to the content.
Remarks
Media type is set to 'application/octet-stream'.