AttachmentBase Konstruktory

Definice

Vytvoří instanci nové AttachmentBase.

Přetížení

Name Description
AttachmentBase(Stream)

Vytvoří instanci se zadaným AttachmentBaseobjektem Stream .

AttachmentBase(String)

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

AttachmentBase(Stream, ContentType)

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

AttachmentBase(Stream, String)

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

AttachmentBase(String, ContentType)

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

AttachmentBase(String, String)

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

AttachmentBase(Stream)

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

Vytvoří instanci se zadaným AttachmentBaseobjektem 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)

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
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se AttachmentBase 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
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným AttachmentBase parametrem 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
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným AttachmentBase typem Stream 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
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným AttachmentBase názvem souboru a typem 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
Zdroj:
Attachment.cs
Zdroj:
Attachment.cs

Vytvoří instanci se zadaným AttachmentBase názvem souboru a typem 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