Nevron Open Vision Documentation
Nevron.Nov.Networking.Mail Namespace / NAttachment Class / FromStream Method


In This Topic
    FromStream Method (NAttachment)
    In This Topic
    Creates an e-mail attachment from the given stream.
    Syntax
    'Declaration
     
    
    Public Shared Function FromStream( _
       ByVal name As System.String, _
       ByVal stream As System.IO.Stream _
    ) As NAttachment
    'Usage
     
    
    Dim name As System.String
    Dim stream As System.IO.Stream
    Dim value As NAttachment
     
    value = NAttachment.FromStream(name, stream)
    public static NAttachment FromStream( 
       System.string name,
       System.IO.Stream stream
    )

    Parameters

    name
    stream
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also