AttachmentBase Konstruktoren

Definition

Instanziiert eine neue AttachmentBase.

Überlädt

AttachmentBase(Stream)

Instanziiert eine AttachmentBase mit dem angegebenen Stream.

AttachmentBase(String)

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen.

AttachmentBase(Stream, ContentType)

Instanziiert eine AttachmentBase mit dem angegebenen Stream und ContentType.

AttachmentBase(Stream, String)

Instanziiert eine AttachmentBase mit dem angegebenen Stream und Medientyp.

AttachmentBase(String, ContentType)

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen und Inhaltstyp.

AttachmentBase(String, String)

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen und Medientyp.

AttachmentBase(Stream)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen 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)

Parameter

contentStream
Stream

Ein Stream, der den Inhalt für diese Anlage enthält.

Ausnahmen

contentStream ist null.

Gilt für:

AttachmentBase(String)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen.

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)

Parameter

fileName
String

Der Name der Datei, die den Inhalt dieser Anlage enthält.

Ausnahmen

fileName ist null.

Gilt für:

AttachmentBase(Stream, ContentType)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen Stream und ContentType.

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)

Parameter

contentStream
Stream

Ein Stream, der den Inhalt für diese Anlage enthält.

contentType
ContentType

Der Typ des Inhalts.

Ausnahmen

contentStream ist null.

"contentType" ist kein gültiger Wert.

Gilt für:

AttachmentBase(Stream, String)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen Stream und Medientyp.

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)

Parameter

contentStream
Stream

Ein Stream, der den Inhalt für diese Anlage enthält.

mediaType
String

Der MIME-Medientyp des Inhalts.

Ausnahmen

contentStream ist null.

"mediaType" ist kein gültiger Wert.

Gilt für:

AttachmentBase(String, ContentType)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen und Inhaltstyp.

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)

Parameter

fileName
String

Der Name der Datei, die den Inhalt dieser Anlage enthält.

contentType
ContentType

Der Typ des Inhalts.

Ausnahmen

fileName ist null.

"contentType" ist kein gültiger Wert.

Gilt für:

AttachmentBase(String, String)

Quelle:
Attachment.cs
Quelle:
Attachment.cs
Quelle:
Attachment.cs

Instanziiert eine AttachmentBase mit dem angegebenen Dateinamen und Medientyp.

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)

Parameter

fileName
String

Der Name der Datei, die den Inhalt dieser Anlage enthält.

mediaType
String

Der MIME-Medientyp des Inhalts.

Ausnahmen

fileName ist null.

"mediaType" ist kein gültiger Wert.

Gilt für: