ReadOnlyLinkedElementCollection<T>.Contains Method

Gets whether a specified role player belongs to the collection.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public Function Contains ( _
    item As T _
) As Boolean
'Usage
Dim instance As ReadOnlyLinkedElementCollection 
Dim item As T
Dim returnValue As Boolean 

returnValue = instance.Contains(item)
public bool Contains(
    T item
)
public:
virtual bool Contains(
    T item
) sealed
public final function Contains(
    item : T
) : boolean

Parameters

  • item
    Type: T

    The role player to look for in the collection.

Return Value

Type: System.Boolean
true if the role player is in the collection; otherwise, false.

Implements

ICollection<T>.Contains(T)

.NET Framework Security

See Also

Reference

ReadOnlyLinkedElementCollection<T> Class

ReadOnlyLinkedElementCollection<T> Members

Microsoft.VisualStudio.Modeling Namespace