AttachmentBase Constructeurs

Définition

Instancie un nouveau AttachmentBase.

Surcharges

AttachmentBase(Stream)

Instancie un AttachmentBase avec le Stream spécifié.

AttachmentBase(String)

Instancie un AttachmentBase avec le nom de fichier spécifié.

AttachmentBase(Stream, ContentType)

Instancie un AttachmentBase avec les Stream et ContentType spécifiés.

AttachmentBase(Stream, String)

Instancie un AttachmentBase avec le Stream et le type de média spécifiés.

AttachmentBase(String, ContentType)

Instancie un AttachmentBase avec le nom de fichier et le type de contenu spécifiés.

AttachmentBase(String, String)

Instancie un AttachmentBase avec le nom de fichier et le type de média spécifiés.

AttachmentBase(Stream)

Instancie un AttachmentBase avec le Stream spécifié.

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 stockant le contenu de cette pièce jointe.

Exceptions

contentStream a la valeur null.

S’applique à

AttachmentBase(String)

Instancie un AttachmentBase avec le 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 stockant le contenu de cette pièce jointe.

Exceptions

fileName a la valeur null.

S’applique à

AttachmentBase(Stream, ContentType)

Instancie un AttachmentBase avec les Stream et ContentType spécifiés.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ 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 stockant le contenu de cette pièce jointe.

contentType
ContentType

Type de contenu.

Exceptions

contentStream a la valeur null.

contentType n’est pas une valeur valide.

S’applique à

AttachmentBase(Stream, String)

Instancie un AttachmentBase avec le Stream et le type de média spécifiés.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::String ^ mediaType);
protected AttachmentBase (System.IO.Stream contentStream, 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 stockant 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 avec le nom de fichier et le 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);
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 stockant le contenu de cette pièce jointe.

contentType
ContentType

Type de contenu.

Exceptions

fileName a la valeur null.

contentType n’est pas une valeur valide.

S’applique à

AttachmentBase(String, String)

Instancie un AttachmentBase 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);
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 stockant 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.

S’applique à