Attachment.Attachment

Attachment(string)

Initializes a new instance of the Attachment class.

public Attachment(string fileName)
ParameterTypeDescription
fileNameStringName of the file.

See Also


Attachment(string, string)

Initializes a new instance of the Attachment class.

public Attachment(string fileName, string mediaType)
ParameterTypeDescription
fileNameStringName of the file.
mediaTypeStringType media type name.

See Also


Attachment(string, ContentType)

Initializes a new instance of the Attachment class.

public Attachment(string fileName, ContentType contentType)
ParameterTypeDescription
fileNameStringName of the file.
contentTypeContentTypeThe ContentType.

See Also


Attachment(Stream, string)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, string name)
ParameterTypeDescription
contentStreamStreamThe content stream of attachment.
nameStringThe attachment name.

See Also


Attachment(Stream, string, string)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, string name, string mediaType)
ParameterTypeDescription
contentStreamStreamThe content stream of attachment.
nameStringThe attachment name.
mediaTypeStringThe media type name.

See Also


Attachment(Stream, ContentType)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, ContentType contentType)
ParameterTypeDescription
contentStreamStreamThe content stream of attachment.
contentTypeContentTypeThe ContentType.

See Also