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.

Syntax

public static LinkedResource CreateLinkedResourceFromString (string content, System.Text.Encoding contentEncoding, string mediaType)

Parameters

content
A string that contains the embedded resource to be included in the email attachment.
contentEncoding
The type of the content.
mediaType
The MIME media 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