SecurityBindingElement::CanBuildChannelFactory<TChannel> Method (BindingContext^)
.NET Framework (current version)
Determines whether a channel factory of the specified type can be built.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: generic<typename TChannel> virtual bool CanBuildChannelFactory( BindingContext^ context ) override
Parameters
- context
-
Type:
System.ServiceModel.Channels::BindingContext^
The BindingContext.
Return Value
Type: System::Booleantrue if a channel factory of the specified type can be built; otherwise, false.
Type Parameters
- TChannel
The type of channel factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
You should call this method before trying to create a channel factory.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Show: