我正在针对 Microsoft Graph CSharp SDK
进行编码我正在尝试证明过滤 DriveItems
的能力关于CreatedDateTime
。
我知道如果我构造一个像这样的调用:
await graphServiceClient.Drives["<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="601513051220151305124e0f0e0d0903120f130f06144e030f0d" rel="noreferrer noopener nofollow">[email protected]</a>"].Root.Request().GetAsync();
将返回所有元数据,但是,我想知道是否有一种方法可以构造一个调用,在该调用中过滤 CreatedDateTime
在一次通话中,这可能吗?
最佳答案
只要底层 Graph API 方法支持,您就可以将选择、过滤等查询选项应用于您的请求。它有点隐藏,但这是 documented in the wiki .
await graphServiceClient.Drives["<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a2d7d1c7d0e2d7d1c7d08ccdcccfcbc1d0cdd1cdc4d68cc1cdcf" rel="noreferrer noopener nofollow">[email protected]</a>"]
.Root
.Request()
.Filter(...)
.GetAsync();
关于c# - Microsoft Graph CSharp SDK 和过滤 - 如何构建对 CreatedDateItem 上过滤器的调用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42278755/