LuciadCPillar C# 2024.0.05
|
Interface for loading data from a path into memory. More...
Public Member Functions | |
Luciad.Containers.DataEntity | Load (string path, Luciad.Concurrent.CancellationToken token) |
Returns the data resource loaded from the given path. More... | |
Interface for loading data from a path into memory.
See related article for an example on how to customize 3D tiles data loading.
Luciad.Containers.DataEntity Luciad.Loaders.IDataLoader.Load | ( | string | path, |
Luciad.Concurrent.CancellationToken | token | ||
) |
Returns the data resource loaded from the given path.
The download process can be canceled by the means of the cancellation token
. It is up to the implementer to verify that the cancellation token state is set to true
during the operation. When set to true
this indicates that a resource is no longer needed. The return value then can be an ErrorInfo
object with the error code Canceled
.
path | Path to the resource. |
token | Cancellation token. This is optional and can be a nulltpr . |
DataEntity
. System.IO.IOException | when loading the data fails. |