AttachmentBase Constructors

Definitie

Instantieert een nieuwe AttachmentBase.

Overloads

Name Description
AttachmentBase(Stream)

Instantieert een AttachmentBase exemplaar met de opgegeven Stream.

AttachmentBase(String)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam.

AttachmentBase(Stream, ContentType)

Instantieert een AttachmentBase instantie met de opgegeven Stream en ContentType.

AttachmentBase(Stream, String)

Instantieert een AttachmentBase instantie met het opgegeven Stream en mediatype.

AttachmentBase(String, ContentType)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam en het inhoudstype.

AttachmentBase(String, String)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam en het mediatype.

AttachmentBase(Stream)

Instantieert een AttachmentBase exemplaar met de opgegeven 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)

Parameters

contentStream
Stream

Een stream met de inhoud voor deze bijlage.

Uitzonderingen

contentStream is null.

Van toepassing op

AttachmentBase(String)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam.

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)

Parameters

fileName
String

De bestandsnaam die de inhoud voor deze bijlage bevat.

Uitzonderingen

fileName is null.

Van toepassing op

AttachmentBase(Stream, ContentType)

Instantieert een AttachmentBase instantie met de opgegeven Stream en 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)

Parameters

contentStream
Stream

Een stream met de inhoud voor deze bijlage.

contentType
ContentType

Het type inhoud.

Uitzonderingen

contentStream is null.

contentType is geen geldige waarde.

Van toepassing op

AttachmentBase(Stream, String)

Instantieert een AttachmentBase instantie met het opgegeven Stream en mediatype.

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)

Parameters

contentStream
Stream

Een stream met de inhoud voor deze bijlage.

mediaType
String

Het MIME-mediatype van de inhoud.

Uitzonderingen

contentStream is null.

mediaType is geen geldige waarde.

Van toepassing op

AttachmentBase(String, ContentType)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam en het inhoudstype.

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)

Parameters

fileName
String

De bestandsnaam die de inhoud voor deze bijlage bevat.

contentType
ContentType

Het type inhoud.

Uitzonderingen

fileName is null.

contentType is geen geldige waarde.

Van toepassing op

AttachmentBase(String, String)

Instantieert een AttachmentBase exemplaar met de opgegeven bestandsnaam en het mediatype.

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)

Parameters

fileName
String

De bestandsnaam die de inhoud voor deze bijlage bevat.

mediaType
String

Het MIME-mediatype van de inhoud.

Uitzonderingen

fileName is null.

mediaType is geen geldige waarde.

Van toepassing op