CreateAttachmentFromString

Attachment.CreateAttachmentFromString method (1 of 3)

Creates the attachment from string.

public static Attachment CreateAttachmentFromString(string content, string name)
Parameter Type Description
content String A string that represents the content of attachment.
name String The attachment name.

Return Value

Returns created attachment

See Also


Attachment.CreateAttachmentFromString method (2 of 3)

Creates the attachment from string.

public static Attachment CreateAttachmentFromString(string content, string name, 
    Encoding contentEncoding, string mediaType)
Parameter Type Description
content String A string that represents the content of attachment.
name String The attachment name.
contentEncoding Encoding The content encoding.
mediaType String The media type name

Return Value

Returns created attachment

See Also


Attachment.CreateAttachmentFromString method (3 of 3)

Creates the attachment from string.

public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
Parameter Type Description
content String A string that represents the content of attachment.
contentType ContentType The ContentType.

Return Value

Returns created attachment

See Also