ReliableSessionBindingElement.CanBuildChannelFactory<TChannel> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈