Save
Save(string)
保存这个MapiContact到带有默认选项的 vCard 文件。 支持的 vCard 版本是 2.1
public void Save(string filePath)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | vCard 文件名 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
也可以看看
Save(string, ContactSaveFormat)
保存这个MapiContact以使用默认选项的格式保存到指定文件。 支持的保存格式为 vCard。
public void Save(string filePath, ContactSaveFormat saveFormat)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | vCard 文件名 |
| saveFormat | ContactSaveFormat | 一种保存格式 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
| NotSupportedException | 不支持指定的格式 |
也可以看看
Save(string, ContactSaveOptions)
保存这个MapiContact使用指定的保存选项进入文件。 支持的保存选项是VCardSaveOptions
public void Save(string filePath, ContactSaveOptions saveOptions)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | vCard 文件名 |
| saveOptions | ContactSaveOptions | 保存选项 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
| ArgumentNullException | saveOptions是无效的 |
| NotSupportedException | 不支持某些保存选项 |
也可以看看
Save(Stream)
保存这个MapiContact进入具有 vCard 格式的给定流。 支持的 vCard 版本是 2.1
public void Save(Stream stream)
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持写 |
也可以看看
Save(Stream, ContactSaveFormat)
保存这个MapiContact使用默认选项的格式保存到给定的流。 支持的保存格式是vCard
public void Save(Stream stream, ContactSaveFormat saveFormat)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要保存到的流 |
| saveFormat | ContactSaveFormat | 一种保存格式 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持写 |
| NotSupportedException | 不支持指定的格式 |
也可以看看
Save(Stream, ContactSaveOptions)
保存这个MapiContact使用指定的保存选项到给定的流。 支持的保存选项是VCardSaveOptions
public void Save(Stream stream, ContactSaveOptions saveOptions)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要保存到的流 |
| saveOptions | ContactSaveOptions | 保存选项 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream或者saveOptions是无效的 |
| NotSupportedException | stream不支持写 |
| ArgumentException | 不正确saveOptions |
| NotSupportedException | 不支持某些保存选项 |
也可以看看