命名空间: microsoft.graph.search
重要
Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
表示 Microsoft 搜索中 Q&A) (问答。 Q&搜索结果页面中的管理回答结果也是如此,这些答案提供特定搜索关键字的答案。 Q&允许管理员直接在搜索中回答用户的问题,而不是提供指向网页的链接。 Q&A 具有许多属性,允许管理员在其组织中更易于访问常用资源。
继承自 searchAnswer。
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | Microsoft.Graph.Search.Qna 集合 | 获取 qna 对象及其属性的列表。 |
| 创建 | Microsoft.Graph.Search.Qna | 创建新的 qna 对象。 |
| Get | Microsoft.Graph.Search.Qna | 读取 qna 对象的属性和关系。 |
| 更新 | Microsoft.Graph.Search.Qna | 更新 qna 对象的属性。 |
| 删除 | 无 | 删除 qna 对象。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| availabilityEndDateTime | DateTimeOffset | QnA 停止作为搜索结果显示的日期和时间。 设置为 null “始终可用”。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| availabilityStartDateTime | DateTimeOffset | QnA 开始显示为搜索结果的日期和时间。 设置为 null “始终可用”。 时间戳类型使用 ISO 8601 格式表示日期和时间信息,并且始终采用 UTC 格式。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| description | String | 搜索结果中显示的答案。 继承自 searchAnswer。 |
| displayName | String | 搜索结果中显示的问题。 继承自 searchAnswer。 |
| groupIds | String collection | 能够查看此 QnA 的安全组的列表。 |
| id | String | QnA 的唯一标识符 (GUID) 。 继承自 searchAnswer。 |
| isSuggested | 布尔值 |
True 如果用户或 Microsoft 向管理员建议了此 QnA,则为只读。 |
| keywords | microsoft.graph.search.answerKeyword | 触发此 QnA 在搜索结果中显示的关键字。 |
| languageTags | 字符串集合 | 可在其中查看此 QnA 的地理特定语言名称列表。 每个语言标记值都遵循 {language}-{region} 模式。 例如,en-us是美国使用的英语。 有关可能值的列表,请参阅 支持的语言标记。 |
| lastModifiedBy | microsoft.graph.identitySet | 创建或上次修改 QnA 的用户的详细信息。 继承自 searchAnswer。 只读。 |
| lastModifiedDateTime | DateTimeOffset | 创建或上次编辑 QnA 的日期和时间。 继承自 searchAnswer。 只读。 |
| 平台 | microsoft.graph.devicePlatformType 集合 | 能够查看此 QnA 的设备和操作系统的列表。 可能的值为: android、 androidForWork、 iOSMobileApplicationManagementandroidMobileApplicationManagementunknownFutureValueandroidASOPunknownwindows10AndLaterwindowsPhone81androidWorkProfileiosmacOSwindowsPhone81AndLater。 |
| state | microsoft.graph.search.answerState | QnA 的状态。 可能的值包括 published、draft、excluded、unknownFutureValue。 |
| targetedVariations | microsoft.graph.search.answerVariant 集合 | 针对不同国家/地区或设备的 QnA 变体。 当需要根据用户的设备、国家/地区或两者向不同内容时使用。 日期和组设置适用于所有变体。 |
| webUrl | String | QnA 的 URL 链接。 当用户从搜索结果中选择此 QnA 时,他们将定向到指定的 URL。 继承自 searchAnswer。 |
关系
无。
JSON 表示形式
以下 JSON 表示形式显示资源类型。
{
"@odata.type": "#microsoft.graph.search.qna",
"availabilityEndDateTime": "String (timestamp)",
"availabilityStartDateTime": "String (timestamp)",
"description": "String",
"displayName": "String",
"groupIds": ["String"],
"id": "String (identifier)",
"isSuggested": "Boolean",
"keywords": {"@odata.type": "microsoft.graph.search.answerKeyword"},
"languageTags": ["String"],
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)",
"platforms": ["String"],
"state": "String",
"targetedVariations": [{"@odata.type": "microsoft.graph.search.answerVariant"}],
"webUrl": "String"
}