MapiTask.FromVTodoAsync

FromVTodoAsync(string, CancellationToken)

Creates an instance of MapiTask from the specified .ics file asynchronously.

public static Task<MapiTask> FromVTodoAsync(string filePath, CancellationToken token = default)
ParameterTypeDescription
filePathStringThe path to the file to be loaded.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Returns a MapiTask instance which is loaded from the specified file.

See Also


FromVTodoAsync(string, bool, CancellationToken)

Creates an instance of MapiTask from the specified .ics file asynchronously.

public static Task<MapiTask> FromVTodoAsync(string filePath, bool detectEncoding, 
    CancellationToken token = default)
ParameterTypeDescription
filePathStringThe path to the file to be loaded.
detectEncodingBooleanDetermines a data encoding by analyzing its byte order mark (BOM)
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Returns a MapiTask instance which is loaded from the specified file.

See Also


FromVTodoAsync(Stream, CancellationToken)

Creates an instance of MapiTask from the specified stream asynchronously.

public static Task<MapiTask> FromVTodoAsync(Stream stream, CancellationToken token = default)
ParameterTypeDescription
streamStreamThe stream to be loaded.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Returns a MapiTask instance which is loaded from the specified stream.

See Also


FromVTodoAsync(Stream, bool, CancellationToken)

Creates an instance of MapiTask from the specified stream asynchronously.

public static Task<MapiTask> FromVTodoAsync(Stream stream, bool detectEncoding, 
    CancellationToken token = default)
ParameterTypeDescription
streamStreamThe stream to be loaded.
detectEncodingBooleanDetermines a data encoding by analyzing its byte order mark (BOM)
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Returns a MapiTask instance which is loaded from the specified stream.

See Also