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
)
Public Shared Function CreateAlternateViewFromString (
content As String,
contentEncoding As Encoding,
mediaType As String
) As AlternateView
public:
static AlternateView^ CreateAlternateViewFromString(
String^ content,
Encoding^ contentEncoding,
String^ mediaType
)
static member CreateAlternateViewFromString :
content : string *
contentEncoding : Encoding *
mediaType : string -> AlternateView
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:
AlternateViewAn AlternateView object that represents an alternate view.
See Also