Contains Method (PageCollection)
Gets a value indicating whether the
PageCollection contains the specified
Page.
'Declaration
Public Function Contains( _
ByVal As Page _
) As Boolean
Parameters
- item
- A Page object for which to check.
Return Value
A
System.Boolean value.
true
if the
PageCollection contains the specified
Page; otherwise,
false
.
PageCollection collection = new PageCollection();
Page page = new Page();
collection.Add(page);
bool contains = collection.Contains(page);