Skip to main content
.NET Framework Class Library
Attachment Constructor





Initializes a new instance of the Attachment class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodAttachment(String)Initializes a new instance of the Attachment class with the specified content string.
Public methodAttachment(Stream, ContentType)Initializes a new instance of the Attachment class with the specified stream and content type.
Public methodAttachment(Stream, String)Initializes a new instance of the Attachment class with the specified stream and name.
Public methodAttachment(String, ContentType)Initializes a new instance of the Attachment class with the specified content string and ContentType.
Public methodAttachment(String, String)Initializes a new instance of the Attachment class with the specified content string and MIME type information.
Public methodAttachment(Stream, String, String)Initializes a new instance of the Attachment class with the specified stream, name, and MIME type information.
Top