LumiSoft Net Help
CreateAttachment Method (file)
Namespaces ► LumiSoft.Net.MIME ► MIME_Message ► CreateAttachment(String)
Creates attachment entity.
Declaration Syntax

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

    [ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")]
    public static MIME_Entity CreateAttachment(
    	string file
    )

    <ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")>
    Public Shared Function CreateAttachment (
    	file As String
    ) As MIME_Entity

    public:
    [ObsoleteAttribute(L"Use MIME_Entity.CreateEntity_Attachment instead.")]
    static MIME_Entity^ CreateAttachment(
    	String^ file
    )

    [<ObsoleteAttribute("Use MIME_Entity.CreateEntity_Attachment instead.")>]
    static member CreateAttachment :
            file : string -> MIME_Entity

Parameters

file (String)
  File name with optional path.

Return Value
MIME_Entity
Returns created attachment entity.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when file is null reference.

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