Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a value that indicates whether the provided item is already in the collection.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Overridable Function Contains ( _
item As T _
) As Boolean
public virtual bool Contains(
T item
)
public:
virtual bool Contains(
T item
)
abstract Contains :
item:'T -> bool
override Contains :
item:'T -> bool
public function Contains(
item : T
) : boolean
Parameters
item
Type: TAn item whose type matches the generic type that was declared when the class was created.
Return Value
Type: Boolean
true if the item is contained in the collection; otherwise, false.
Implements
ICollection.Contains(UTP)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.