[AsyncStateMachineAttribute(System.Type)]
public Task<bool> Open()
<AsyncStateMachineAttribute(System.Type)>
Public Function Open() As Task(Of Boolean)
true if successful; otherwise, false.
The LEADTOOLS class methods that uses LeadStream such as RasterCodecs.GetInformationAsync, RasterCodecs.LoadAsync, RasterCodecs.LoadSvgAsync or RasterCodecs.SaveAsync will call Open when it is ready to use the underlying stream.
Open
will perform the following:
Create a new .NET System.IO.Stream
using the following and setting it into the Stream property:
this.Stream = await this.HttpClient.GetStreamAsync(this.Uri);
Sets the value of IsOpen to true.
Afterwards, the LEADTOOLS methods will access Stream to load or store data.
Refer to RasterCodecs Async Operations for more information and examples.
For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.
For .NET Standard: This functionality is included in the Leadtools.dll assembly.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document