Actualización: noviembre 2007
Crea datos adjuntos a un mensaje utilizando el contenido de la cadena especificada y el objeto ContentType especificado.
Espacio de nombres:
System.Net.Mail
Ensamblado:
System (en System.dll)
Visual Basic (Declaración)
Public Shared Function CreateAttachmentFromString ( _
content As String, _
contentType As ContentType _
) As Attachment
Dim content As String
Dim contentType As ContentType
Dim returnValue As Attachment
returnValue = Attachment.CreateAttachmentFromString(content, _
contentType)
public static Attachment CreateAttachmentFromString(
string content,
ContentType contentType
)
public:
static Attachment^ CreateAttachmentFromString(
String^ content,
ContentType^ contentType
)
public static Attachment CreateAttachmentFromString(
String content,
ContentType contentType
)
public static function CreateAttachmentFromString(
content : String,
contentType : ContentType
) : Attachment
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
.NET Framework
Compatible con: 3.5, 3.0, 2.0
Referencia