Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在Microsoft Graph中检索现有订阅?_C#_Azure Active Directory_Microsoft Graph Api - Fatal编程技术网

C# 如何在Microsoft Graph中检索现有订阅?

C# 如何在Microsoft Graph中检索现有订阅?,c#,azure-active-directory,microsoft-graph-api,C#,Azure Active Directory,Microsoft Graph Api,这是我正在尝试的电话: https://graph.microsoft.com/v1.0/subscriptions 这将导致以下错误: { "error": { "code": "QueryNotSupported", "message": "The query is not supported.", "innerError": { "request-id": "8b2f2137-51ed-498d-9fbb-b

这是我正在尝试的电话:

https://graph.microsoft.com/v1.0/subscriptions
这将导致以下错误:

{
    "error": {
        "code": "QueryNotSupported",
        "message": "The query is not supported.",
        "innerError": {
            "request-id": "8b2f2137-51ed-498d-9fbb-bc0a29c509da",
            "date": "2018-01-27T14:56:01"
        }
    }
}
我正在使用Microsoft Graph.NET SDK进行实际调用:

var subscriptions = await graphServiceClient.Subscriptions.Request().GetAsync();

无法检索所有现有文件的列表。您需要知道给定订阅的
订阅ID
,然后才能
获取
补丁
、或
删除
订阅


请记住,订阅本质上是临时资源。除非请求订阅的应用程序将其续订,否则给定订阅通常会在3天内自动过期

感谢@Marc LaFleur的快速回复