Load
Load(string)
加载Appointment来自文件. 支持的文件格式:iCalendar
public static Appointment Load(string filePath)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | 一个文件路径 |
返回值
一读Appointment
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
也可以看看
Load(string, AppointmentLoadOptions)
加载Appointment来自文件. 支持的文件格式:iCalendar 一个文件路径。代表约会负载选项AppointmentLoadOptions.一读Appointment.
public static Appointment Load(string filePath, AppointmentLoadOptions options)
也可以看看
Load(Stream)
加载Appointment来自stream
public static Appointment Load(Stream stream)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要从中加载的流 |
返回值
一读Appointment
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持阅读 |
也可以看看
Load(Stream, bool)
加载Appointment来自stream
public static Appointment Load(Stream stream, bool applyLocalTimeZone)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要从中加载的流 |
| applyLocalTimeZone | Boolean | 将时间转换为本地时区 |
返回值
一读Appointment
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持阅读 |
也可以看看
Load(Stream, AppointmentLoadOptions)
加载Appointment来自stream
public static Appointment Load(Stream stream, AppointmentLoadOptions options)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要从中加载的流 |
| options | AppointmentLoadOptions | 代表约会负载选项 |
返回值
一读Appointment
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持阅读 |
也可以看看