Editor for WinForms | ComponentOne
C1.Win.Editor.8 Assembly / C1.Win.Editor Namespace / C1Editor Class / LoadDocumentAsync Method / LoadDocumentAsync(Stream,Boolean) Method
The stream of document to load.
true to leave the stream open after the System.IO.BinaryReader object is disposed; otherwise, false.

In This Topic
    LoadDocumentAsync(Stream,Boolean) Method
    In This Topic
    Loads content from the stream asynchronously.
    Syntax
    'Declaration
     
    Public Overloads Function LoadDocumentAsync( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal leaveOpen As System.Boolean _
    ) As System.Threading.Tasks.Task
    public System.Threading.Tasks.Task LoadDocumentAsync( 
       System.IO.Stream stream,
       System.bool leaveOpen
    )

    Parameters

    stream
    The stream of document to load.
    leaveOpen
    true to leave the stream open after the System.IO.BinaryReader object is disposed; otherwise, false.
    See Also