Save
Save(string, MapiCalendarSaveOptions)
使用默认保存选项将日历对象保存到指定格式的文件中
public void Save(string filePath, MapiCalendarSaveOptions saveOptions)
范围 | 类型 | 描述 |
---|
filePath | String | 一个文件路径 |
saveOptions | MapiCalendarSaveOptions | 保存选项 |
例外
例外 | (健康)状况 |
---|
ArgumentException | filePath是无效的 或者空的 |
NotSupportedException | 不支持指定的保存选项 |
也可以看看
Save(Stream, MapiCalendarSaveOptions)
使用指定的保存选项将日历保存到流中
public void Save(Stream stream, MapiCalendarSaveOptions saveOptions)
范围 | 类型 | 描述 |
---|
stream | Stream | 要保存到的流 |
saveOptions | MapiCalendarSaveOptions | 保存选项 |
例外
例外 | (健康)状况 |
---|
ArgumentNullException | saveOptions或者stream是无效的 |
NotSupportedException | 不支持指定的保存选项 |
NotSupportedException | 流不支持写入 |
也可以看看
Save(string)
使用默认保存选项将日历对象保存到 iCalendar 格式的文件中
public void Save(string filePath)
范围 | 类型 | 描述 |
---|
filePath | String | 一个文件路径 |
例外
例外 | (健康)状况 |
---|
ArgumentException | filePath是无效的 或者空的 |
也可以看看
Save(string, AppointmentSaveFormat)
使用默认保存选项将日历对象保存到指定格式的文件中
public void Save(string filePath, AppointmentSaveFormat saveFormat)
范围 | 类型 | 描述 |
---|
filePath | String | 一个文件路径 |
saveFormat | AppointmentSaveFormat | 一种保存格式 |
例外
例外 | (健康)状况 |
---|
ArgumentException | filePath是无效的 或者空的 |
NotSupportedException | 指定的saveFormat不支持 |
也可以看看
Save(Stream)
使用默认保存选项将日历对象保存到 iCalendar 格式的文件中
public void Save(Stream stream)
例外
例外 | (健康)状况 |
---|
ArgumentNullException | stream是无效的 |
NotSupportedException | 流不支持写入 |
也可以看看
Save(Stream, AppointmentSaveFormat)
使用默认保存选项将日历对象以指定格式保存到流中
public void Save(Stream stream, AppointmentSaveFormat saveFormat)
范围 | 类型 | 描述 |
---|
stream | Stream | 要保存到的流 |
saveFormat | AppointmentSaveFormat | 一种保存格式 |
例外
例外 | (健康)状况 |
---|
ArgumentNullException | stream是无效的 |
NotSupportedException | 指定的saveFormat不支持 |
NotSupportedException | 流不支持写入 |
也可以看看