AttachmentBase 생성자

정의

AttachmentBase인스턴스화 .

오버로드

Name Description
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
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

이 첨부 파일의 콘텐츠를 포함하는 스트림입니다.

예외

contentStreamnull입니다.

적용 대상

AttachmentBase(String)

Source:
Attachment.cs
Source:
Attachment.cs
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

이 첨부 파일의 콘텐츠를 포함하는 파일 이름입니다.

예외

fileNamenull입니다.

적용 대상

AttachmentBase(Stream, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
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

콘텐츠의 형식입니다.

예외

contentStreamnull입니다.

contentType은 유효한 값이 아닙니다.

적용 대상

AttachmentBase(Stream, String)

Source:
Attachment.cs
Source:
Attachment.cs
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 미디어 형식입니다.

예외

contentStreamnull입니다.

mediaType은 유효한 값이 아닙니다.

적용 대상

AttachmentBase(String, ContentType)

Source:
Attachment.cs
Source:
Attachment.cs
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

콘텐츠의 형식입니다.

예외

fileNamenull입니다.

contentType은 유효한 값이 아닙니다.

적용 대상

AttachmentBase(String, String)

Source:
Attachment.cs
Source:
Attachment.cs
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 미디어 형식입니다.

예외

fileNamenull입니다.

mediaType은 유효한 값이 아닙니다.

적용 대상