Attachment

Attachment()

의 새 인스턴스를 초기화합니다.Attachment 클래스.

public Attachment()

또한보십시오


Attachment(string, string)

의 새 인스턴스를 초기화합니다.Attachment 클래스.

public Attachment(string fileName, string filePath)
모수 유형 설명
fileName String 첨부파일명.
filePath String 첨부 파일 상대 경로 예:폴더/파일.docx 또는 파일이 이메일 메시지 또는 데이터 파일의 아카이브 루트에 있는 경우 파일 이름입니다.

예외

예외 상태
ArgumentException 언제 던져fileName null이거나 비어 있습니다.
ArgumentException 언제 던져filePath null이거나 비어 있습니다.

또한보십시오


Attachment(string, string, string, long)

의 새 인스턴스를 초기화합니다.Attachment 클래스.

public Attachment(string id, string fileName, string filePath, long size)
모수 유형 설명
id String 첨부 파일의 고유한(단일 파일 컨텍스트에서) 식별자입니다.
fileName String 첨부파일명.
filePath String 첨부 파일 상대 경로 예:폴더/파일.docx 또는 파일이 이메일 메시지 또는 데이터 파일의 아카이브 루트에 있는 경우 파일 이름입니다.
size Int64 첨부 파일 크기(바이트)입니다.

예외

예외 상태
ArgumentException 언제 던져id null이거나 비어 있습니다.
ArgumentException 언제 던져fileName null이거나 비어 있습니다.
ArgumentException 언제 던져filePath null이거나 비어 있습니다.

또한보십시오


Attachment(string, string, string, FileType, long)

의 새 인스턴스를 초기화합니다.Attachment 클래스.

public Attachment(string id, string fileName, string filePath, FileType fileType, long size)
모수 유형 설명
id String 첨부 파일의 고유한(단일 파일 컨텍스트에서) 식별자입니다.
fileName String 첨부파일명.
filePath String 첨부 파일 상대 경로 예:폴더/파일.docx 또는 파일이 이메일 메시지 또는 데이터 파일의 아카이브 루트에 있는 경우 파일 이름입니다.
fileType FileType 첨부 파일 형식.
size Int64 첨부 파일 크기(바이트)입니다.

예외

예외 상태
ArgumentException 언제 던져id null이거나 비어 있습니다.
ArgumentException 언제 던져fileName null이거나 비어 있습니다.
ArgumentException 언제 던져filePath null이거나 비어 있습니다.
ArgumentNullException 언제 던져fileType null입니다.

또한보십시오