MailBindingBase.MessageContainerType 속성
업데이트: 2007년 11월
메시지 전송 방법을 결정하는 열거형을 가져오거나 설정합니다.
네임스페이스: Microsoft.ServiceModel.Channels.Mail
어셈블리: Microsoft.ServiceModel.Channels.Mail(Microsoft.ServiceModel.Channels.Mail.dll)
구문
‘선언
Public Property MessageContainerType As MessageContainerType
‘사용 방법
Dim instance As MailBindingBase
Dim value As MessageContainerType
value = instance.MessageContainerType
instance.MessageContainerType = value
public MessageContainerType MessageContainerType { get; set; }
public:
property MessageContainerType MessageContainerType {
MessageContainerType get ();
void set (MessageContainerType value);
}
public function get MessageContainerType () : MessageContainerType
public function set MessageContainerType (value : MessageContainerType)
속성 값
형식: Microsoft.ServiceModel.Channels.Mail.MessageContainerType
메시지 데이터 전송 방법을 지정하는 열거형 값 중 하나입니다.
설명
MessageContainerType 속성을 Default로 설정하면 메시지를 메시지 본문으로 보낼지 또는 첨부 파일로 보낼지 여부가 MinimumAttachmentSize 속성에 따라 결정됩니다.
예제
다음 예제에서는 MessageContainerType 속성을 사용하는 방법을 보여 줍니다.
' Instantiate a TextMessageEncodingBindingElement or
' a custom encoding binding element. If you use a custom encoding
' binding element, messages must be sent as attachments.
msgEncodingBindingElement = New CustomMessageEncodingBindingElement()
mailTransportBindingElement = New WindowsMobileMailTransportBindingElement()
mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment
// Instantiate a TextMessageEncodingBindingElement or
// a custom encoding binding element. If you use a custom encoding
// binding element, messages must be sent as attachments.
msgEncodingBindingElement = new CustomMessageEncodingBindingElement();
mailTransportBindingElement = new WindowsMobileMailTransportBindingElement();
mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment;
권한
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
플랫폼
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Compact Framework
3.5에서 지원