AttachmentBase Konstruktory

Definice

Vytvoří instanci nového AttachmentBaseobjektu .

Přetížení

AttachmentBase(Stream)

Vytvoří instanci se AttachmentBase zadaným Streamobjektem .

AttachmentBase(String)

Vytvoří AttachmentBase instanci se zadaným názvem souboru.

AttachmentBase(Stream, ContentType)

Vytvoří AttachmentBase instanci se zadanými Stream a ContentType.

AttachmentBase(Stream, String)

Vytvoří AttachmentBase instanci se zadaným Stream a typem média.

AttachmentBase(String, ContentType)

Vytvoří instanci se zadaným názvem souboru a typem AttachmentBase obsahu.

AttachmentBase(String, String)

Vytvoří instanci se zadaným názvem souboru a typem AttachmentBase média.

AttachmentBase(Stream)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se AttachmentBase zadaným Streamobjektem .

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)

Parametry

contentStream
Stream

Datový proud obsahující obsah této přílohy.

Výjimky

contentStream je null.

Platí pro

AttachmentBase(String)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří AttachmentBase instanci se zadaným názvem souboru.

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)

Parametry

fileName
String

Název souboru, který obsahuje obsah této přílohy.

Výjimky

fileName je null.

Platí pro

AttachmentBase(Stream, ContentType)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří AttachmentBase instanci se zadanými Stream a 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)

Parametry

contentStream
Stream

Datový proud obsahující obsah této přílohy.

contentType
ContentType

Typ obsahu.

Výjimky

contentStream je null.

contentType není platná hodnota.

Platí pro

AttachmentBase(Stream, String)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří AttachmentBase instanci se zadaným Stream a typem média.

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)

Parametry

contentStream
Stream

Datový proud obsahující obsah této přílohy.

mediaType
String

Typ média MIME obsahu.

Výjimky

contentStream je null.

mediaType není platná hodnota.

Platí pro

AttachmentBase(String, ContentType)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným názvem souboru a typem AttachmentBase obsahu.

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)

Parametry

fileName
String

Název souboru, který obsahuje obsah této přílohy.

contentType
ContentType

Typ obsahu.

Výjimky

fileName je null.

contentType není platná hodnota.

Platí pro

AttachmentBase(String, String)

Zdroj:
Attachment.cs
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným názvem souboru a typem AttachmentBase média.

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)

Parametry

fileName
String

Název souboru, který obsahuje obsah této přílohy.

mediaType
String

Typ média MIME obsahu.

Výjimky

fileName je null.

mediaType není platná hodnota.

Platí pro