Attachment

Attachment(string)

Initializes a new instance of the Attachment class.

public Attachment(string fileName)
Parameter Type Description
fileName String Name of the file.

See Also


Attachment(string, string)

Initializes a new instance of the Attachment class.

public Attachment(string fileName, string mediaType)
Parameter Type Description
fileName String Name of the file.
mediaType String Type media type name.

See Also


Attachment(string, ContentType)

Initializes a new instance of the Attachment class.

public Attachment(string fileName, ContentType contentType)
Parameter Type Description
fileName String Name of the file.
contentType ContentType The ContentType.

See Also


Attachment(Stream, string)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, string name)
Parameter Type Description
contentStream Stream The content stream of attachment.
name String The attachment name.

See Also


Attachment(Stream, string, string)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, string name, string mediaType)
Parameter Type Description
contentStream Stream The content stream of attachment.
name String The attachment name.
mediaType String The media type name.

See Also


Attachment(Stream, ContentType)

Initializes a new instance of the Attachment class.

public Attachment(Stream contentStream, ContentType contentType)
Parameter Type Description
contentStream Stream The content stream of attachment.
contentType ContentType The ContentType.

See Also