MsmqTransportBindingElement.CanBuildChannelFactory<TChannel> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
제공된 컨텍스트를 사용하여 채널 팩터리를 빌드할 수 있는지 여부를 나타내는 부울 값을 반환합니다.
public:
generic <typename TChannel>
override bool CanBuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelFactory<TChannel>(System.ServiceModel.Channels.BindingContext context);
override this.CanBuildChannelFactory : System.ServiceModel.Channels.BindingContext -> bool
Public Overrides Function CanBuildChannelFactory(Of TChannel) (context As BindingContext) As Boolean
형식 매개 변수
- TChannel
채널 수신기를 빌드하는 데 사용할 채널 유형입니다. 허용되는 채널 형식 또는 IOutputSessionChannel 클래스입니다 IOutputChannel .
매개 변수
- context
- BindingContext
BindingContext 채널 팩터리를 빌드할 작업입니다.
반품
true제공된 컨텍스트를 사용하여 채널 팩터리를 빌드할 수 있으면 이고, 그렇지 않으면 . false 바인딩 요소는 trueTChannel is IOutputChannel 또는 IOutputSessionChannel.
예제
if (transportBindingElement.CanBuildChannelFactory<IOutputChannel>(context))
{
// Do something...
}