MtomMessageEncodingBindingElement.CanBuildChannelFactory<TChannel>(BindingContext) 方法

定義

傳回值,這個值表示目前的繫結是否可以建置指定之通道及內容型別的處理站。Returns a value that indicates whether the current binding can build a factory for a specified type of channel and context.

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

通道處理站所產生之通道的類型。The type of channel the channel factory produces.

參數

context
BindingContext

通道的 BindingContextThe BindingContext for the channel.

傳回

如果可以在服務上建置指定的通道處理站堆疊,則為 true,否則為 falsetrue if the specified channel factory stack can be built on the service; otherwise, false.

適用於