Skip to content

Commit 696a22d

Browse files
author
Caitlin Bales (MSFT)
authored
Add example for custom query options
1 parent 8118937 commit 696a22d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/overview.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ All properties other than `Id` will be null on the returned user object.
112112

113113
Expand, Skip, Top, OrderBy, and Filter are also supported via the client library when supported by the Microsoft Graph service for the request type.
114114

115+
## Custom query options
116+
117+
If you need to include more specific behavior during a request that is not supported by the library, you can create a custom queryOptions List that you can add when calling ```Request```:
118+
119+
```chsarp
120+
List<QueryOption> options = new List<QueryOption>
121+
{
122+
new QueryOption("$search", "lunch")
123+
};
124+
var messages = await client.Me.Messages.Request(options).GetAsync();
125+
```
126+
127+
128+
115129
## Collections
116130

117131
Please see [collections](/docs/collections.md) for details on collections and paging.

0 commit comments

Comments
 (0)