Share via


BindingElementCollection.Contains Method (Type)

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

Returns a value that indicates whether a specified type of binding element belongs to the collection of binding elements.

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

Syntax

'Declaration
Public Function Contains ( _
    bindingElementType As Type _
) As Boolean
public bool Contains(
    Type bindingElementType
)

Parameters

  • bindingElementType
    Type: System.Type
    The type of binding element being tested for inclusion in the collection.

Return Value

Type: System.Boolean
true if the type of binding element specified is contained in the collection; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

bindingElementType is nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.