MailAttachment 생성자

정의

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 형식입니다.

적용 대상