AlternateViewCreateAlternateViewFromString Method (String, Encoding, String)

Creates a AlternateView of using the content specified in a string.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public static AlternateView CreateAlternateViewFromString(
	string content,
	Encoding contentEncoding,
	string mediaType
)

Parameters

content
Type: SystemString
The string that contains the content.
contentEncoding
Type: System.TextEncoding
The content encoding.
mediaType
Type: SystemString
Internet media type.

Return Value

Type: AlternateView
An AlternateView object that represents an alternate view.
See Also