RasEntryCollection.Contains Method (String)

DotRas SDK

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

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

Syntax

C#
public bool Contains(
	string name
)
Visual Basic
Public Function Contains ( 
	name As String
) As Boolean
Visual C++
public:
bool Contains(
	String^ name
)
F#
member Contains : 
        name : string -> bool 

Parameters

name
Type: System..::..String
The name of the entry to locate.

Return Value

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

Exceptions

Exception Condition
System..::..ArgumentException name is an empty string or null reference (Nothing in Visual Basic).

See Also