LinkedResourceCreateLinkedResourceFromString Method (String, Encoding, String)

Creates the linked resource from string.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public static LinkedResource CreateLinkedResourceFromString(
	string content,
	Encoding contentEncoding,
	string mediaType
)

Parameters

content
Type: SystemString
A string that contains the resource to be included in the email attachment.
contentEncoding
Type: System.TextEncoding
The content encoding.
mediaType
Type: SystemString
The MIME media type of the content.

Return Value

Type: LinkedResource
A LinkedResource object that contains the embedded resource.
See Also