Method FindPages
- Namespace
- Odotocodot.OneNote.Linq
- Assembly
- Odotocodot.OneNote.Linq.dll
FindPages(string)
Get a flattened collection of pages that match the search
parameter.
public static IEnumerable<OneNotePage> FindPages(string search)
Parameters
search
string-
The search query. This should be exactly the same string that you would type into the search box in the OneNote UI. You can use bitwise operators, such as AND and OR, which must be all uppercase.
Returns
- IEnumerable<OneNotePage>
-
An IEnumerable<Odotocodot.OneNote.Linq.OneNotePage> that contains pages that match the
search
parameter.
Exceptions
- ArgumentNullException
-
Thrown if
search
is null. - ArgumentException
-
Thrown if
search
is empty or only whitespace, or if the first character ofsearch
is NOT a letter or a digit.
See Also
FindPages(string, IOneNoteItem)
search
parameter.
scope
.
public static IEnumerable<OneNotePage> FindPages(string search, IOneNoteItem scope)
Parameters
search
string- The search query. This should be exactly the same string that you would type into the search box in the OneNote UI. You can use bitwise operators, such as AND and OR, which must be all uppercase.
scope
IOneNoteItem-
The hierarchy item to search within.
Returns
- IEnumerable<OneNotePage>
-
An IEnumerable<Odotocodot.OneNote.Linq.OneNotePage> that contains pages that match the search
parameter.
Exceptions
- ArgumentException
- ArgumentNullException
-
Thrown if
search
orscope
is null.