ContextBindingElement.CanBuildChannelFactory<TChannel>(BindingContext) Método
Definição
Retorna um valor que indica se o elemento de associação atual pode criar uma fábrica para um tipo de canal e contexto especificados.Returns a value that indicates whether the current binding element 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
Parâmetros de tipo
- TChannel
O tipo de canal que a fábrica de canais produz.The type of channel the channel factory produces. Somente IRequestChannel , IRequestSessionChannel e IDuplexSessionChannel são permitidos por padrão.Only IRequestChannel, IRequestSessionChannel, and IDuplexSessionChannel are allowed by default.
Parâmetros
- context
- BindingContext
O BindingContext da fábrica.The BindingContext for the factory.
Retornos
true se a pilha de fábrica de canais especificada puder ser criada no cliente; caso contrário, false.true if the specified channel factory stack can be built on the client; otherwise, false.