Rediger

Del via


AttachmentBase Constructors

Definition

Instantiates a new AttachmentBase.

Overloads

AttachmentBase(Stream)

Instantiates an AttachmentBase with the specified Stream.

AttachmentBase(String)

Instantiates an AttachmentBase with the specified file name.

AttachmentBase(Stream, ContentType)

Instantiates an AttachmentBase with the specified Stream and ContentType.

AttachmentBase(Stream, String)

Instantiates an AttachmentBase with the specified Stream and media type.

AttachmentBase(String, ContentType)

Instantiates an AttachmentBase with the specified file name and content type.

AttachmentBase(String, String)

Instantiates an AttachmentBase with the specified file name and media type.

AttachmentBase(Stream)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified 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

A stream containing the content for this attachment.

Exceptions

contentStream is null.

Applies to

AttachmentBase(String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified file name.

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

The file name holding the content for this attachment.

Exceptions

fileName is null.

Applies to

AttachmentBase(Stream, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified Stream and 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)

Parameters

contentStream
Stream

A stream containing the content for this attachment.

contentType
ContentType

The type of the content.

Exceptions

contentStream is null.

contentType is not a valid value.

Applies to

AttachmentBase(Stream, String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified Stream and media type.

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)

Parameters

contentStream
Stream

A stream containing the content for this attachment.

mediaType
String

The MIME media type of the content.

Exceptions

contentStream is null.

mediaType is not a valid value.

Applies to

AttachmentBase(String, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified file name and content type.

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)

Parameters

fileName
String

The file name holding the content for this attachment.

contentType
ContentType

The type of the content.

Exceptions

fileName is null.

contentType is not a valid value.

Applies to

AttachmentBase(String, String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

Instantiates an AttachmentBase with the specified file name and media type.

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)

Parameters

fileName
String

The file name holding the content for this attachment.

mediaType
String

The MIME media type of the content.

Exceptions

fileName is null.

mediaType is not a valid value.

Applies to