Returns an ordered collection of binding elements contained in the current binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The order of the binding elements is important. It reflects the order in which the protocol and transport channels are constructed and stacked. This collection of binding elements creates a new collection each time it is called and can be modified and then used to create a CustomBinding.
BasicHttpBinding basicEHBinding = new BasicHttpBinding(); BindingElementCollection bindingEC = basicEHBinding.CreateBindingElements(); //Check on binding elements contained in the collection bool boolHTBE = bindingEC.Contains(typeof(HttpTransportBindingElement)); //Returns true string txtboolHTBE = boolHTBE.ToString(); bool boolHSTBE = bindingEC.Contains(typeof(HttpsTransportBindingElement)); //Returns false string txtboolHSTBE = boolHSTBE.ToString();
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.