編集

次の方法で共有


ReliableSessionBindingElement.CanBuildChannelFactory<TChannel> Method

Definition

Returns a value that indicates whether the channel factory can be built for the channel and context provided that can support a reliable session.

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

Type Parameters

TChannel

The type of channel the factory builds.

Parameters

context
BindingContext

The BindingContext that contains the information required to build the factories that can produce channels of type TChannel.

Returns

true if the IChannelFactory<TChannel> of type TChannel can be built; otherwise, false.

Remarks

This method returns true or false for a TChannel in accordance with the table of values provided in BuildChannelFactory<TChannel>(BindingContext).

Applies to