C# 클래스 EnterpriseWebLibrary.Email.EmailAttachment

An email attachment.
파일 보기 프로젝트 열기: enduracode/enterprise-web-library

공개 메소드들

메소드 설명
EmailAttachment ( Stream stream, string contentType, string attachmentDisplayName ) : System.IO

Creates an email attachment. The stream must contain the contents of the attachment, be readable and must not be closed. The attachmentDisplayName should be a file name with the proper extension. NOTE: It would be kind of nice if this could use FileInfoToBeSent. THen we could have ExcelFileWriter just know how to return one of those and it would cover sending the file to the browser and emailing it.

EmailAttachment ( string filePath ) : System.IO

Creates an email attachment.

비공개 메소드들

메소드 설명
ToAttachment ( ) : System.Net.Mail.Attachment

Converts this to a System.Net.Mail.Attachment.

메소드 상세

EmailAttachment() 공개 메소드

Creates an email attachment. The stream must contain the contents of the attachment, be readable and must not be closed. The attachmentDisplayName should be a file name with the proper extension. NOTE: It would be kind of nice if this could use FileInfoToBeSent. THen we could have ExcelFileWriter just know how to return one of those and it would cover sending the file to the browser and emailing it.
public EmailAttachment ( Stream stream, string contentType, string attachmentDisplayName ) : System.IO
stream System.IO.Stream
contentType string
attachmentDisplayName string
리턴 System.IO

EmailAttachment() 공개 메소드

Creates an email attachment.
public EmailAttachment ( string filePath ) : System.IO
filePath string
리턴 System.IO