Partager via


Binding.CanBuildChannelFactory Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows Phone CanBuildChannelFactory<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.
Public methodSupported by Silverlight for Windows Phone CanBuildChannelFactory<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.

Top

Remarks

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``1() and catch the exception generated if it cannot be built.