System.Net.Mail.LinkedResource.CreateLinkedResourceFromString Method

Creates a System.Net.Mail.LinkedResource object from a string to be included in an email attachment as an embedded resource, with the specified content type, and media type as plain text.

Syntax

public static LinkedResource CreateLinkedResourceFromString (string content, System.Net.Mime.ContentType contentType)

Parameters

content
A string that contains the embedded resource to be included in the email attachment.
contentType
The type of the content.

Returns

A System.Net.Mail.LinkedResource object that contains the embedded resource to be included in the email attachment.

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