BindingContext.CanBuildInnerChannelFactory<TChannel> Método

Definição

Retorna um valor que indica se a fábrica de canais interna pode produzir um tipo de canal especificado.

public:
generic <typename TChannel>
 bool CanBuildInnerChannelFactory();
public bool CanBuildInnerChannelFactory<TChannel> ();
member this.CanBuildInnerChannelFactory : unit -> bool
Public Function CanBuildInnerChannelFactory(Of TChannel) () As Boolean

Parâmetros de tipo

TChannel

O tipo de IChannel objeto que a fábrica de canais interna produz.

Retornos

true se a fábrica de canais interna puder produzir o TChannel especificado; caso contrário, false.

Exemplos

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.CanBuildInnerChannelFactory<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.CanBuildInnerChannelFactory(Of IDuplexChannel)()

Aplica-se a