C# 클래스 anmar.SharpMimeTools.SharpAttachment

This class provides the basic functionality for handling attachments
파일 보기 프로젝트 열기: jeske/StepsDB-alpha 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the underling stream if it's open.

Save ( System path, bool overwrite ) : System.IO.FileInfo

Saves of the attachment to a file in the given path.

If the file was already saved, the previous System.IO.FileInfo is returned.
Once the file is successfully saved, the stream is closed and SavedFile property is updated.

SharpAttachment ( System stream ) : System

Initializes a new instance of the anmar.SharpMimeTools.SharpAttachment class based on the supplied System.IO.MemoryStream.

메소드 상세

Close() 공개 메소드

Closes the underling stream if it's open.
public Close ( ) : void
리턴 void

Save() 공개 메소드

Saves of the attachment to a file in the given path.
If the file was already saved, the previous System.IO.FileInfo is returned.
Once the file is successfully saved, the stream is closed and SavedFile property is updated.
public Save ( System path, bool overwrite ) : System.IO.FileInfo
path System A specifying the path on which to save the attachment.
overwrite bool true if the destination file can be overwritten; otherwise, false.
리턴 System.IO.FileInfo

SharpAttachment() 공개 메소드

Initializes a new instance of the anmar.SharpMimeTools.SharpAttachment class based on the supplied System.IO.MemoryStream.
public SharpAttachment ( System stream ) : System
stream System instance that contains the attachment content.
리턴 System