AttachmentCollection.AddFileAttachment Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| AddFileAttachment(String) |
Agrega un archivo adjunto a la colección. |
| AddFileAttachment(String, Byte[]) |
Agrega un archivo adjunto a la colección que contiene el archivo. |
| AddFileAttachment(String, Stream) |
Agrega un archivo adjunto a la colección mediante una secuencia de datos que contiene el archivo. |
| AddFileAttachment(String, String) |
Agrega un archivo adjunto a la colección. |
AddFileAttachment(String)
Agrega un archivo adjunto a la colección.
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ fileName);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string fileName);
Public Function AddFileAttachment (fileName As String) As FileAttachment
Parámetros
- fileName
- String
La ruta de acceso a un archivo que se agregará a la colección.
Devoluciones
Un archivo adjunto.
Se aplica a
AddFileAttachment(String, Byte[])
Agrega un archivo adjunto a la colección que contiene el archivo.
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, cli::array <System::Byte> ^ content);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, byte[] content);
Public Function AddFileAttachment (name As String, content As Byte()) As FileAttachment
Parámetros
- name
- String
Nombre para mostrar el archivo de los datos adjuntos.
- content
- Byte[]
Una matriz de bytes que representa el contenido del archivo adjunto.
Devoluciones
Un archivo adjunto.
Se aplica a
AddFileAttachment(String, Stream)
Agrega un archivo adjunto a la colección mediante una secuencia de datos que contiene el archivo.
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, System::IO::Stream ^ contentStream);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, System.IO.Stream contentStream);
Public Function AddFileAttachment (name As String, contentStream As Stream) As FileAttachment
Parámetros
- name
- String
Nombre para mostrar el archivo de los datos adjuntos.
- contentStream
- Stream
La secuencia de datos que contiene el archivo que se asociará a la colección.
Devoluciones
Un archivo adjunto.
Se aplica a
AddFileAttachment(String, String)
Agrega un archivo adjunto a la colección.
public:
Microsoft::Exchange::WebServices::Data::FileAttachment ^ AddFileAttachment(System::String ^ name, System::String ^ fileName);
public Microsoft.Exchange.WebServices.Data.FileAttachment AddFileAttachment (string name, string fileName);
Public Function AddFileAttachment (name As String, fileName As String) As FileAttachment
Parámetros
- name
- String
Nombre para mostrar el archivo de los datos adjuntos.
- fileName
- String
El archivo nombre del archivo adjunto.
Devoluciones
Un archivo adjunto.