LumiSoft Net Help
CreateAttachment Method (stream, fileName)
Namespaces ► LumiSoft.Net.MIME ► MIME_Message ► CreateAttachment(Stream, String)
Creates attachment entity.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    [ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")]
    public static MIME_Entity CreateAttachment(
    	Stream stream,
    	string fileName
    )

    <ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")>
    Public Shared Function CreateAttachment (
    	stream As Stream,
    	fileName As String
    ) As MIME_Entity

    public:
    [ObsoleteAttribute(L"Use MIME_Entity.CreateEntity_Attachment instead.")]
    static MIME_Entity^ CreateAttachment(
    	Stream^ stream,
    	String^ fileName
    )

    [<ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")>]
    static member CreateAttachment :
            stream : Stream *
            fileName : string -> MIME_Entity

Parameters

stream (Stream)
  Attachment data stream. Data is read from stream current position.

fileName (String)
  File name.

Return Value
MIME_Entity
Returns created attachment entity.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when stream or fileName is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119