AttachmentBase 생성자

정의

AttachmentBase을 인스턴스화합니다.

오버로드

AttachmentBase(Stream)

지정된 AttachmentBase을 사용하여 Stream를 인스턴스화합니다.

AttachmentBase(String)

지정된 파일 이름을 사용하여 AttachmentBase를 인스턴스화합니다.

AttachmentBase(Stream, ContentType)

지정된 AttachmentBaseStream을 사용하여 ContentType를 인스턴스화합니다.

AttachmentBase(Stream, String)

지정된 AttachmentBase 및 미디어 형식을 사용하여 Stream를 인스턴스화합니다.

AttachmentBase(String, ContentType)

지정된 파일 이름 및 콘텐츠 형식을 사용하여 AttachmentBase를 인스턴스화합니다.

AttachmentBase(String, String)

지정된 파일 이름 및 미디어 형식을 사용하여 AttachmentBase를 인스턴스화합니다.

AttachmentBase(Stream)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 AttachmentBase을 사용하여 Stream를 인스턴스화합니다.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream);
protected AttachmentBase (System.IO.Stream contentStream);
new System.Net.Mail.AttachmentBase : System.IO.Stream -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream)

매개 변수

contentStream
Stream

이 첨부 파일의 내용이 들어 있는 스트림입니다.

예외

contentStream이(가) null인 경우

적용 대상

AttachmentBase(String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 파일 이름을 사용하여 AttachmentBase를 인스턴스화합니다.

protected:
 AttachmentBase(System::String ^ fileName);
protected AttachmentBase (string fileName);
new System.Net.Mail.AttachmentBase : string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String)

매개 변수

fileName
String

이 첨부 파일의 내용이 들어 있는 파일 이름입니다.

예외

fileName이(가) null인 경우

적용 대상

AttachmentBase(Stream, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 AttachmentBaseStream을 사용하여 ContentType를 인스턴스화합니다.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase (System.IO.Stream contentStream, System.Net.Mime.ContentType? contentType);
protected AttachmentBase (System.IO.Stream contentStream, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, contentType As ContentType)

매개 변수

contentStream
Stream

이 첨부 파일의 내용이 들어 있는 스트림입니다.

contentType
ContentType

콘텐츠의 형식입니다.

예외

contentStream이(가) null인 경우

contentType은(는) 올바른 값이 아닙니다.

적용 대상

AttachmentBase(Stream, String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 AttachmentBase 및 미디어 형식을 사용하여 Stream를 인스턴스화합니다.

protected:
 AttachmentBase(System::IO::Stream ^ contentStream, System::String ^ mediaType);
protected AttachmentBase (System.IO.Stream contentStream, string? mediaType);
protected AttachmentBase (System.IO.Stream contentStream, string mediaType);
new System.Net.Mail.AttachmentBase : System.IO.Stream * string -> System.Net.Mail.AttachmentBase
Protected Sub New (contentStream As Stream, mediaType As String)

매개 변수

contentStream
Stream

이 첨부 파일의 내용이 들어 있는 스트림입니다.

mediaType
String

콘텐츠의 MIME 미디어 형식입니다.

예외

contentStream이(가) null인 경우

mediaType은(는) 올바른 값이 아닙니다.

적용 대상

AttachmentBase(String, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 파일 이름 및 콘텐츠 형식을 사용하여 AttachmentBase를 인스턴스화합니다.

protected:
 AttachmentBase(System::String ^ fileName, System::Net::Mime::ContentType ^ contentType);
protected AttachmentBase (string fileName, System.Net.Mime.ContentType? contentType);
protected AttachmentBase (string fileName, System.Net.Mime.ContentType contentType);
new System.Net.Mail.AttachmentBase : string * System.Net.Mime.ContentType -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, contentType As ContentType)

매개 변수

fileName
String

이 첨부 파일의 내용이 들어 있는 파일 이름입니다.

contentType
ContentType

콘텐츠의 형식입니다.

예외

fileName이(가) null인 경우

contentType은(는) 올바른 값이 아닙니다.

적용 대상

AttachmentBase(String, String)

Source:
Attachment.cs
Source:
Attachment.cs
Source:
Attachment.cs

지정된 파일 이름 및 미디어 형식을 사용하여 AttachmentBase를 인스턴스화합니다.

protected:
 AttachmentBase(System::String ^ fileName, System::String ^ mediaType);
protected AttachmentBase (string fileName, string? mediaType);
protected AttachmentBase (string fileName, string mediaType);
new System.Net.Mail.AttachmentBase : string * string -> System.Net.Mail.AttachmentBase
Protected Sub New (fileName As String, mediaType As String)

매개 변수

fileName
String

이 첨부 파일의 내용이 들어 있는 파일 이름입니다.

mediaType
String

콘텐츠의 MIME 미디어 형식입니다.

예외

fileName이(가) null인 경우

mediaType은(는) 올바른 값이 아닙니다.

적용 대상