FromVCard
FromVCard(string)
读取MapiContact从指定的 vCard 文件 支持的 vCard 版本为 2.1 和 3.0
public static MapiContact FromVCard(string filePath)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | 要读取的文件名 |
返回值
一读MapiContact
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
也可以看看
FromVCard(string, Encoding)
读取MapiContact从指定的 vCard 文件 支持的 vCard 版本为 2.1 和 3.0
public static MapiContact FromVCard(string filePath, Encoding encoding)
| 范围 | 类型 | 描述 |
|---|
| filePath | String | 要读取的文件名 |
| encoding | Encoding | 文件数据编码 |
返回值
一读MapiContact
例外
| 例外 | (健康)状况 |
|---|
| ArgumentException | filePath是无效的或者空的 |
也可以看看
FromVCard(Stream)
读取MapiContact来自包含 vCard 的指定流。 支持的 vCard 版本为 2.1 和 3.0
public static MapiContact FromVCard(Stream stream)
返回值
一读MapiContact
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持阅读 |
也可以看看
FromVCard(Stream, Encoding)
读取MapiContact来自包含 vCard 的指定流。 支持的 vCard 版本为 2.1 和 3.0
public static MapiContact FromVCard(Stream stream, Encoding encoding)
| 范围 | 类型 | 描述 |
|---|
| stream | Stream | 要读取的流 |
| encoding | Encoding | 流数据编码 |
返回值
一读MapiContact
例外
| 例外 | (健康)状况 |
|---|
| ArgumentNullException | stream是无效的 |
| NotSupportedException | stream不支持阅读 |
也可以看看