照片资源类型
命名空间:microsoft.graph
重要
Microsoft Graph /beta
版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
照片资源提供 driveItem 中的照片和相机属性,例如 EXIF 元数据。
注意
目前,OneDrive for Business 和 SharePoint 上仅 提供 takenDateTime 。
属性
属性 | 类型 | 说明 |
---|---|---|
cameraMake | String | 相机制造商。 此为只读属性。 |
cameraModel | String | 相机型号。 此为只读属性。 |
exposureDenominator | 双精度 | 相机的曝光时间分数的分母。 此为只读属性。 |
exposureNumerator | 双精度 | 相机的曝光时间分数的分子。 此为只读属性。 |
fNumber | 双精度 | 相机的 F-stop 值。 此为只读属性。 |
focalLength | 双精度 | 相机的焦距。 此为只读属性。 |
iso | Int32 | 相机的 ISO 值。 此为只读属性。 |
orientation | Int16 | 相机的方向值。 OneDrive 个人版上可写。 |
takenDateTime | DateTimeOffset | 以 UTC 时间拍摄照片的日期和时间。 只读。 |
JSON 表示形式
以下 JSON 表示形式显示了资源类型。
{
"cameraMake": "String",
"cameraModel": "String",
"exposureDenominator": 1000.0,
"exposureNumerator": 1.0,
"fNumber": 1.8,
"focalLength": 22.5,
"iso": 100,
"orientation": 3,
"takenDateTime": "String (timestamp)"
}