CustomBinding Constructor (String^, String^, array<BindingElement^>^)
.NET Framework (current version)
Initializes a new instance of the CustomBinding class from an array of binding elements with a specified name and namespace.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: CustomBinding( String^ name, String^ ns, ... array<BindingElement^>^ bindingElementsInTopDownChannelStackOrder )
Parameters
- name
-
Type:
System::String^
The name of the binding.
- ns
-
Type:
System::String^
The namespace of the binding.
- bindingElementsInTopDownChannelStackOrder
-
Type:
array<System.ServiceModel.Channels::BindingElement^>^
The Array of type BindingElement used to initialize the custom binding.
| Exception | Condition |
|---|---|
| ArgumentNullException | bindingElementsInTopDownChannelStackOrder is null. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.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 2.0
Windows Phone Silverlight
Available since 7.0
Show: