다음을 통해 공유


MailTransportBindingElementBase.Transport 속성

업데이트: 2007년 11월

입력 및 출력 채널에서 메시지를 주고받는 데 사용할 전송을 가져오거나 설정합니다.

네임스페이스:  Microsoft.ServiceModel.Channels.Mail
어셈블리:  Microsoft.ServiceModel.Channels.Mail(Microsoft.ServiceModel.Channels.Mail.dll)

구문

‘선언
Public Property Transport As MailTransport
‘사용 방법
Dim instance As MailTransportBindingElementBase
Dim value As MailTransport

value = instance.Transport

instance.Transport = value
public MailTransport Transport { get; set; }
public:
property MailTransport^ Transport {
    MailTransport^ get ();
    void set (MailTransport^ value);
}
public function get Transport () : MailTransport
public function set Transport (value : MailTransport)

속성 값

형식: Microsoft.ServiceModel.Channels.Mail.MailTransport
메시지를 주고받는 데 사용할 전송입니다.

설명

MailTransport 클래스는 각 메일 끝점의 통신 채널을 관리합니다.

응용 프로그램을 닫기 전에 메일 전송을 삭제해야 합니다.

여러 바인딩에 단일 메일 전송을 사용 중인 경우 메일 전송을 설정해야 합니다.

예제

다음 예제에서는 Transport 속성을 사용하는 방법을 보여 줍니다.

mailTransportBindingElement = New WindowsMobileMailTransportBindingElement()

mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment
' In this example, set lifetime to 1 day, 10 hours,
' 20 minutes, and 30 seconds.
mailTransportBindingElement.TimeToLive = New TimeSpan(1, 10, 20, 30)
mailTransportBindingElement.Transport.MaxTotalMessageCacheSize = 1000
mailTransportBindingElement = new WindowsMobileMailTransportBindingElement();

mailTransportBindingElement.MessageContainerType = MessageContainerType.Attachment;
// In this example, set lifetime to 1 day, 10 hours,
// 20 minutes, and 30 seconds.
mailTransportBindingElement.TimeToLive = new TimeSpan(1, 10, 20, 30);
mailTransportBindingElement.Transport.MaxTotalMessageCacheSize = 1000;

권한

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

플랫폼

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Compact Framework

3.5에서 지원

참고 항목

참조

MailTransportBindingElementBase 클래스

MailTransportBindingElementBase 멤버

Microsoft.ServiceModel.Channels.Mail 네임스페이스