System.Net.Mail.AlternateView.CreateAlternateViewFromString Method

Creates an System.Net.Mail.AlternateView of an email message using the content specified in a string and the specified MIME media type of the content.

Syntax

public static AlternateView CreateAlternateViewFromString (string content, System.Net.Mime.ContentType contentType)

Parameters

content
A string that contains the content for this attachment.
contentType
A System.Net.Mime.ContentType that describes the data in string.

Returns

An System.Net.Mail.AlternateView object that represents an alternate view of an email message.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0