MapiCalendar.FromIcsAsync

FromIcsAsync(Stream, CancellationToken)

Creates an instance of MapiCalendar from the specified stream asynchronously.

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

Return Value

Returns a MapiCalendar instance loaded from the specified stream.

See Also


FromIcsAsync(Stream, bool, CancellationToken)

Creates an instance of MapiCalendar from the specified stream asynchronously.

public static Task<MapiCalendar> FromIcsAsync(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 MapiCalendar instance loaded from the specified stream.

See Also


FromIcsAsync(string, CancellationToken)

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

public static Task<MapiCalendar> FromIcsAsync(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 MapiCalendar instance loaded from the specified file.

See Also


FromIcsAsync(string, bool, CancellationToken)

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

public static Task<MapiCalendar> FromIcsAsync(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 MapiCalendar instance loaded from the specified file.

See Also