Save

Save(string, MapiCalendarSaveOptions)

使用默认保存选项将日历对象保存到指定格式的文件中

public void Save(string filePath, MapiCalendarSaveOptions saveOptions)
范围类型描述
filePathString一个文件路径
saveOptionsMapiCalendarSaveOptions保存选项

例外

例外(健康)状况
ArgumentExceptionfilePath无效的或者空的
NotSupportedException不支持指定的保存选项

也可以看看


Save(Stream, MapiCalendarSaveOptions)

使用指定的保存选项将日历保存到流中

public void Save(Stream stream, MapiCalendarSaveOptions saveOptions)
范围类型描述
streamStream要保存到的流
saveOptionsMapiCalendarSaveOptions保存选项

例外

例外(健康)状况
ArgumentNullExceptionsaveOptions或者stream无效的
NotSupportedException不支持指定的保存选项
NotSupportedException流不支持写入

也可以看看


Save(string)

使用默认保存选项将日历对象保存到 iCalendar 格式的文件中

public void Save(string filePath)
范围类型描述
filePathString一个文件路径

例外

例外(健康)状况
ArgumentExceptionfilePath无效的或者空的

也可以看看


Save(string, AppointmentSaveFormat)

使用默认保存选项将日历对象保存到指定格式的文件中

public void Save(string filePath, AppointmentSaveFormat saveFormat)
范围类型描述
filePathString一个文件路径
saveFormatAppointmentSaveFormat一种保存格式

例外

例外(健康)状况
ArgumentExceptionfilePath无效的或者空的
NotSupportedException指定的saveFormat不支持

也可以看看


Save(Stream)

使用默认保存选项将日历对象保存到 iCalendar 格式的文件中

public void Save(Stream stream)
范围类型描述
streamStream要保存到的流

例外

例外(健康)状况
ArgumentNullExceptionstream无效的
NotSupportedException流不支持写入

也可以看看


Save(Stream, AppointmentSaveFormat)

使用默认保存选项将日历对象以指定格式保存到流中

public void Save(Stream stream, AppointmentSaveFormat saveFormat)
范围类型描述
streamStream要保存到的流
saveFormatAppointmentSaveFormat一种保存格式

例外

例外(健康)状况
ArgumentNullExceptionstream无效的
NotSupportedException指定的saveFormat不支持
NotSupportedException流不支持写入

也可以看看