CompositeDuplexBindingElement.CanBuildChannelFactory<TChannel> Methode

Definition

Gibt einen Wert zurück, der angibt, ob die Bindung die Kanalfactory erstellen kann, die einen bestimmten Kanaltyp erzeugt, der den Kontextanforderungen entspricht.

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

Typparameter

TChannel

Die IChannel Kanalfabrik produziert.

Parameter

context
BindingContext

Dies BindingContext stellt den Kontext bereit, der zum Erstellen des Kanallisteners erforderlich ist.

Gibt zurück

truewenn die Bindung die Kanalfactory erstellen kann; andernfalls . false

Ausnahmen

context ist null.

Hinweise

true wenn TChannel == IOutputChannel und die innere Bindung auch erstellen IOutputChannelkann ; andernfalls false.

Gilt für: