Attachment

Attachment(string)

初始化Attachment类.

public Attachment(string fileName)
范围类型描述
fileNameString文件的名称。

也可以看看


Attachment(string, string)

初始化Attachment类.

public Attachment(string fileName, string mediaType)
范围类型描述
fileNameString文件的名称。
mediaTypeString键入媒体类型名称。

也可以看看


Attachment(string, ContentType)

初始化Attachment类.

public Attachment(string fileName, ContentType contentType)
范围类型描述
fileNameString文件的名称。
contentTypeContentTypeContentType.

也可以看看


Attachment(Stream, string)

初始化Attachment类.

public Attachment(Stream contentStream, string name)
范围类型描述
contentStreamStream附件的内容流。
nameString附件名称。

也可以看看


Attachment(Stream, string, string)

初始化Attachment类.

public Attachment(Stream contentStream, string name, string mediaType)
范围类型描述
contentStreamStream附件的内容流。
nameString附件名称。
mediaTypeString媒体类型名称。

也可以看看


Attachment(Stream, ContentType)

初始化Attachment类.

public Attachment(Stream contentStream, ContentType contentType)
范围类型描述
contentStreamStream附件的内容流。
contentTypeContentTypeContentType.

也可以看看