Microsoft Graph CSharp SDK 和过滤 - 如何构建对 CreatedDateItem 的过滤调用?
Microsoft Graph CSharp SDK and filtering - how to construct a call to filter on CreatedDateItem?
我正在针对 Microsoft Graph CSharp SDK
进行编码,我正在尝试证明在 CreatedDateTime
上过滤 DriveItems
的能力。
我知道如果我构造一个调用,如:
await graphServiceClient.Drives["user@user.onmicrosoft.com"].Root.Request().GetAsync();
将 return 所有元数据,但是,我想知道是否有一种方法可以构建一个调用,它可以在单个调用中过滤 CreatedDateTime
,这可能吗?
只要底层 Graph API 方法支持,您就可以将 Select、过滤器等查询选项应用于您的请求。它有点隐藏,但这是 documented in the wiki.
await graphServiceClient.Drives["user@user.onmicrosoft.com"]
.Root
.Request()
.Filter(...)
.GetAsync();
我正在针对 Microsoft Graph CSharp SDK
进行编码,我正在尝试证明在 CreatedDateTime
上过滤 DriveItems
的能力。
我知道如果我构造一个调用,如:
await graphServiceClient.Drives["user@user.onmicrosoft.com"].Root.Request().GetAsync();
将 return 所有元数据,但是,我想知道是否有一种方法可以构建一个调用,它可以在单个调用中过滤 CreatedDateTime
,这可能吗?
只要底层 Graph API 方法支持,您就可以将 Select、过滤器等查询选项应用于您的请求。它有点隐藏,但这是 documented in the wiki.
await graphServiceClient.Drives["user@user.onmicrosoft.com"]
.Root
.Request()
.Filter(...)
.GetAsync();