MailAttachment 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
MailAttachment 클래스의 새 인스턴스를 초기화합니다. 권장 대안: System.Net.Mail.
오버로드
| Name | Description |
|---|---|
| MailAttachment(String) |
첨부 파일의 지정된 파일 이름을 사용하여 클래스의 MailAttachment 새 인스턴스를 초기화합니다. Encoding 속성을 UUEncode 기본적으로 설정합니다. 권장 대안: System.Net.Mail. |
| MailAttachment(String, MailEncoding) |
지정된 파일 이름 및 첨부 파일의 인코딩 형식을 사용하여 클래스의 MailAttachment 새 인스턴스를 초기화합니다. 권장 대안: System.Net.Mail. |
MailAttachment(String)
첨부 파일의 지정된 파일 이름을 사용하여 클래스의 MailAttachment 새 인스턴스를 초기화합니다. Encoding 속성을 UUEncode 기본적으로 설정합니다. 권장 대안: System.Net.Mail.
public:
MailAttachment(System::String ^ filename);
public MailAttachment(string filename);
new System.Web.Mail.MailAttachment : string -> System.Web.Mail.MailAttachment
Public Sub New (filename As String)
매개 변수
- filename
- String
첨부 파일의 이름입니다.
설명
메일을 보내는 동안 메일 첨부 파일은 잠깁니다.
적용 대상
MailAttachment(String, MailEncoding)
지정된 파일 이름 및 첨부 파일의 인코딩 형식을 사용하여 클래스의 MailAttachment 새 인스턴스를 초기화합니다. 권장 대안: System.Net.Mail.
public:
MailAttachment(System::String ^ filename, System::Web::Mail::MailEncoding encoding);
public MailAttachment(string filename, System.Web.Mail.MailEncoding encoding);
new System.Web.Mail.MailAttachment : string * System.Web.Mail.MailEncoding -> System.Web.Mail.MailAttachment
Public Sub New (filename As String, encoding As MailEncoding)
매개 변수
- filename
- String
첨부 파일의 이름입니다.
- encoding
- MailEncoding
첨부 파일의 MailEncoding 형식입니다.