AlternateView AlternateView AlternateView AlternateView Constructors

Definition

Overloads

AlternateView(Stream) AlternateView(Stream) AlternateView(Stream) AlternateView(Stream)

Initializes a new instance of AlternateView with the specified Stream.

AlternateView(String) AlternateView(String) AlternateView(String) AlternateView(String)

Initializes a new instance of AlternateView with the specified file name.

AlternateView(Stream, ContentType) AlternateView(Stream, ContentType) AlternateView(Stream, ContentType)

Initializes a new instance of AlternateView with the specified Stream and ContentType.

AlternateView(Stream, String) AlternateView(Stream, String) AlternateView(Stream, String) AlternateView(Stream, String)

Initializes a new instance of AlternateView with the specified Stream and media type.

AlternateView(String, ContentType) AlternateView(String, ContentType) AlternateView(String, ContentType)

Initializes a new instance of AlternateView with the specified file name and content type.

AlternateView(String, String) AlternateView(String, String) AlternateView(String, String) AlternateView(String, String)

Initializes a new instance of AlternateView with the specified file name and media type.

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(Stream) AlternateView(Stream) AlternateView(Stream) AlternateView(Stream)

Initializes a new instance of AlternateView with the specified Stream.

public:
 AlternateView(System::IO::Stream ^ contentStream);
public AlternateView (System.IO.Stream contentStream);
new System.Net.Mail.AlternateView : System.IO.Stream -> System.Net.Mail.AlternateView
Public Sub New (contentStream As Stream)

Parameters

contentStream
Stream Stream Stream Stream

A stream that contains the content for this view.

Exceptions

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(String) AlternateView(String) AlternateView(String) AlternateView(String)

Initializes a new instance of AlternateView with the specified file name.

public:
 AlternateView(System::String ^ fileName);
public AlternateView (string fileName);
new System.Net.Mail.AlternateView : string -> System.Net.Mail.AlternateView
Public Sub New (fileName As String)

Parameters

fileName
String String String String

The name of the file that contains the content for this alternate view.

Exceptions

The caller does not have the required permission.

An I/O error occurred, such as a disk error.

The access requested is not permitted by the operating system for the specified file handle, such as when access is Write or ReadWrite and the file handle is set for read-only access.

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(Stream, ContentType) AlternateView(Stream, ContentType) AlternateView(Stream, ContentType)

Initializes a new instance of AlternateView with the specified Stream and ContentType.

public:
 AlternateView(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ contentType);
public AlternateView (System.IO.Stream contentStream, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AlternateView : System.IO.Stream * System.Net.Mime.ContentType -> System.Net.Mail.AlternateView

Parameters

contentStream
Stream Stream Stream Stream

A stream that contains the content for this attachment.

contentType
ContentType ContentType ContentType ContentType

The type of the content.

Exceptions

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(Stream, String) AlternateView(Stream, String) AlternateView(Stream, String) AlternateView(Stream, String)

Initializes a new instance of AlternateView with the specified Stream and media type.

public:
 AlternateView(System::IO::Stream ^ contentStream, System::String ^ mediaType);
public AlternateView (System.IO.Stream contentStream, string mediaType);
new System.Net.Mail.AlternateView : System.IO.Stream * string -> System.Net.Mail.AlternateView
Public Sub New (contentStream As Stream, mediaType As String)

Parameters

contentStream
Stream Stream Stream Stream

A stream that contains the content for this attachment.

mediaType
String String String String

The MIME media type of the content.

Exceptions

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(String, ContentType) AlternateView(String, ContentType) AlternateView(String, ContentType)

Initializes a new instance of AlternateView with the specified file name and content type.

public:
 AlternateView(System::String ^ fileName, System::Net::Mime::ContentType ^ contentType);
public AlternateView (string fileName, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AlternateView : string * System.Net.Mime.ContentType -> System.Net.Mail.AlternateView

Parameters

fileName
String String String String

The name of the file that contains the content for this alternate view.

contentType
ContentType ContentType ContentType ContentType

The type of the content.

Exceptions

The caller does not have the required permission.

An I/O error occurred, such as a disk error.

The access requested is not permitted by the operating system for the specified file handle, such as when access is Write or ReadWrite and the file handle is set for read-only access.

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

AlternateView(String, String) AlternateView(String, String) AlternateView(String, String) AlternateView(String, String)

Initializes a new instance of AlternateView with the specified file name and media type.

public:
 AlternateView(System::String ^ fileName, System::String ^ mediaType);
public AlternateView (string fileName, string mediaType);
new System.Net.Mail.AlternateView : string * string -> System.Net.Mail.AlternateView
Public Sub New (fileName As String, mediaType As String)

Parameters

fileName
String String String String

The name of the file that contains the content for this alternate view.

mediaType
String String String String

The MIME media type of the content.

Exceptions

The caller does not have the required permission.

An I/O error occurred, such as a disk error.

The access requested is not permitted by the operating system for the specified file handle, such as when access is Write or ReadWrite and the file handle is set for read-only access.

Remarks

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

Applies to