AttachmentBase Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Instancie un nouveau AttachmentBase.
Surcharges
| Nom | Description |
|---|---|
| AttachmentBase(Stream) |
Instancie un AttachmentBase avec le Stream. |
| AttachmentBase(String) |
Instancie un AttachmentBase nom de fichier spécifié. |
| AttachmentBase(Stream, ContentType) |
Instancie un AttachmentBase avec les éléments spécifiés Stream et ContentType. |
| AttachmentBase(Stream, String) |
Instancie un AttachmentBase type de média et spécifié Stream . |
| AttachmentBase(String, ContentType) |
Instancie un AttachmentBase nom de fichier et un type de contenu spécifiés. |
| AttachmentBase(String, String) |
Instancie un AttachmentBase fichier avec le nom de fichier et le type de média spécifiés. |
AttachmentBase(Stream)
Instancie un AttachmentBase avec le Stream.
protected:
AttachmentBase(System::IO::Stream ^ contentStream);
protected AttachmentBase(System.IO.Stream contentStream);
new System.Net.Mail.AttachmentBase : System.IO.Stream -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream)
Paramètres
- contentStream
- Stream
Flux contenant le contenu de cette pièce jointe.
Exceptions
contentStream a la valeur null.
S’applique à
AttachmentBase(String)
Instancie un AttachmentBase nom de fichier spécifié.
protected:
AttachmentBase(System::String ^ fileName);
protected AttachmentBase(string fileName);
new System.Net.Mail.AttachmentBase : string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String)
Paramètres
- fileName
- String
Nom de fichier contenant le contenu de cette pièce jointe.
Exceptions
fileName a la valeur null.
S’applique à
AttachmentBase(Stream, ContentType)
Instancie un AttachmentBase avec les éléments spécifiés Stream et ContentType.
protected:
AttachmentBase(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase(System.IO.Stream contentStream, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, contentType As ContentType)
Paramètres
- contentStream
- Stream
Flux contenant le contenu de cette pièce jointe.
- contentType
- ContentType
Le type de contenu.
Exceptions
contentStream a la valeur null.
contentType n’est pas une valeur valide.
S’applique à
AttachmentBase(Stream, String)
Instancie un AttachmentBase type de média et spécifié Stream .
protected:
AttachmentBase(System::IO::Stream ^ contentStream, System::String ^ mediaType);
protected AttachmentBase(System.IO.Stream contentStream, string mediaType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * string -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, mediaType As String)
Paramètres
- contentStream
- Stream
Flux contenant le contenu de cette pièce jointe.
- mediaType
- String
Type de média MIME du contenu.
Exceptions
contentStream a la valeur null.
mediaType n’est pas une valeur valide.
S’applique à
AttachmentBase(String, ContentType)
Instancie un AttachmentBase nom de fichier et un type de contenu spécifiés.
protected:
AttachmentBase(System::String ^ fileName, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase(string fileName, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : string * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, contentType As ContentType)
Paramètres
- fileName
- String
Nom de fichier contenant le contenu de cette pièce jointe.
- contentType
- ContentType
Le type de contenu.
Exceptions
fileName a la valeur null.
contentType n’est pas une valeur valide.
S’applique à
AttachmentBase(String, String)
Instancie un AttachmentBase fichier avec le nom de fichier et le type de média spécifiés.
protected:
AttachmentBase(System::String ^ fileName, System::String ^ mediaType);
protected AttachmentBase(string fileName, string mediaType);
new System.Net.Mail.AttachmentBase : string * string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, mediaType As String)
Paramètres
- fileName
- String
Nom de fichier contenant le contenu de cette pièce jointe.
- mediaType
- String
Type de média MIME du contenu.
Exceptions
fileName a la valeur null.
mediaType n’est pas une valeur valide.