Task.Load

Load(string)

Loads a task from an iCalendar (ICS) file.

public static Task Load(string filePath)
ParameterTypeDescription
filePathStringThe path of the ICS file.

Return Value

The task read from the file.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.
FileNotFoundExceptionThe file specified by filePath does not exist.

See Also


Load(Stream)

Loads a task from a stream of iCalendar (ICS) data.

public static Task Load(Stream stream)
ParameterTypeDescription
streamStreamThe stream to read from.

Return Value

The task read from the stream.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also