다음을 통해 공유


ConnectionOrientedTransportBindingElement.CanBuildChannelListener<TChannel> 메서드

정의

지정된 형식의 채널 수신기를 생성할 수 있는지 여부를 결정합니다.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean

형식 매개 변수

TChannel

확인할 채널의 형식입니다.

매개 변수

context
BindingContext

채널의 BindingContext입니다.

반환

채널 수신기를 생성할 수 있으면 true이고, 그렇지 않으면 false입니다.

예외

context이(가) null인 경우

설명

채널 수신기를 만들기 전에 이 메서드를 호출해야 합니다.

TChannelIDuplexSessionChannel이면 이 메서드는 버퍼링 모드에서만 true를 반환합니다. TChannelIReplyChannel이면 이 메서드는 스트리밍 모드에서만 true를 반환합니다.

적용 대상