Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Binding::CanBuildChannelFactory Method

 

Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies some specific criteria.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

NameDescription
System_CAPS_pubmethodCanBuildChannelFactory<TChannel>(BindingParameterCollection^)

Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the collection of binding parameters specified.

System_CAPS_pubmethodCanBuildChannelFactory<TChannel>(array<Object^>^)

Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the requirements specified by an object array.

Use this method if you want to check that the channel factory for channels of type TChannel can be build for the context provided before attempting to actually build the factory. Alternatively, try to build the channel factory by calling BuildChannelFactory<TChannel> and catch the exception generated if it cannot be built.

Return to top
Show:
© 2017 Microsoft