.NET Framework Class Library AlternateView Class Represents the format to view an email message.

Inheritance Hierarchy
Namespace:
System.Net.Mail
Assembly:
System (in System.dll)

Syntax
Public Class AlternateView _
Inherits AttachmentBase
public class AlternateView : AttachmentBase
public ref class AlternateView : public AttachmentBase
type AlternateView =
class
inherit AttachmentBase
end
The AlternateView type exposes the following members.

Constructors

Properties

Methods

Remarks
Use the AlternateView class to specify copies of an e-mail message in different formats. For example, if you send a message in HTML, you might also want provide a plain text version in case some of the recipients use e-mail readers that cannot display HTML content. This class has two properties LinkedResources and BaseUri that are used to resolve URLs within the content of the email. LinkedResources is a collection of LinkedResource objects. When rendered, URLs within the e-mail's content are first matched against the URLs in the ContentLink of each LinkedResource object in the LinkedResources collection, and resolved. BaseUri is used by the mail reader to resolve relative URLs within the body, and also to resolve relative ContentLink URLs, in the LinkedResources collection.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileSupported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Biblioteca de clases de .NET Framework AlternateView (Clase) Representa el formato para ver un mensaje de correo electrónico.

Jerarquía de herencia
Espacio de nombres:
System.Net.Mail
Ensamblado:
System (en System.dll)

Sintaxis
Public Class AlternateView _
Inherits AttachmentBase
public class AlternateView : AttachmentBase
public ref class AlternateView : public AttachmentBase
type AlternateView =
class
inherit AttachmentBase
end
El tipo AlternateView expone los siguientes miembros.

Constructores

Propiedades

Métodos

Comentarios
Utilice la clase AlternateView para especificar copias de un mensaje de correo electrónico en distintos formatos. Por ejemplo, si envía un mensaje en formato HTML, puede que también desee enviar una versión de texto sin formato en caso de que algunos de los destinatarios usen lectores de correo electrónico que no puedan mostrar contenido HTML. Esta clase tiene dos propiedades, LinkedResources y BaseUri, que se utilizan para resolver direcciones URL dentro del contenido del mensaje de correo electrónico. LinkedResources es una colección de objetos LinkedResource. Cuando se representa, direcciones URL dentro del contenido del correo electrónico coinciden primero con las direcciones URL en ContentLink de cada objeto LinkedResource en la colección LinkedResources y se resuelve. El lector de correo usa BaseUri para resolver direcciones URL relativas dentro del cuerpo y también para resolver direcciones URL ContentLink relativas en la colección LinkedResources.

Información de versión
.NET FrameworkCompatible con: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileCompatible con: 4, 3.5 SP1

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Seguridad para subprocesos
Todos los miembros static ( Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Vea también
|