RasCollection(TObject).Contains Method

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Determines whether the phone book contains the entry specified.

Namespace: DotRas.Design
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
public bool Contains(
	TObject item
)
Visual Basic
Public Function Contains ( 
	item As TObject
) As Boolean
Visual C++
public:
virtual bool Contains(
	TObject item
) sealed
F#
abstract Contains : 
        item : 'TObject -> bool 
override Contains : 
        item : 'TObject -> bool 

Parameters

item
Type: TObject
Required. The object to locate within the collection.

Return Value

Type: Boolean
true if the item was found, otherwise false.

Implements

ICollection<(Of <(<'T>)>)>..::..Contains(T)

Exceptions

Exception Condition
System..::..ArgumentNullException item is a null reference (Nothing in Visual Basic).

See Also