Photo 资源类型Photo resource type

命名空间:microsoft.graphNamespace: microsoft.graph

照片 资源提供 driveItem 中的照片和相机属性,例如 EXIF 元数据。The photo resource provides photo and camera properties, for example, EXIF metadata, on a driveItem.

JSON 表示形式JSON representation

  "cameraMake": "string",
  "cameraModel": "string",
  "exposureDenominator": 1000.0,
  "exposureNumerator": 1.0,
  "fNumber": 1.8,
  "focalLength": 22.5,
  "iso": 100,
  "orientation": 3,
  "takenDateTime": "String (timestamp)"


属性Property 类型Type 说明Description
takenDateTimetakenDateTime DateTimeOffsetDateTimeOffset 表示照片拍摄的时间和日期。只读。Represents the date and time the photo was taken. Read-only.
cameraMakecameraMake StringString 相机制造商。只读。Camera manufacturer. Read-only.
cameraModelcameraModel StringString 相机型号。只读。Camera model. Read-only.
fNumberfNumber DoubleDouble 相机的 F-stop 值。只读。The F-stop value from the camera. Read-only.
exposureDenominatorexposureDenominator DoubleDouble 相机的曝光时间分数的分母。只读。The denominator for the exposure time fraction from the camera. Read-only.
exposureNumeratorexposureNumerator DoubleDouble 相机的曝光时间分数的分子。只读。The numerator for the exposure time fraction from the camera. Read-only.
focalLengthfocalLength DoubleDouble 相机的焦距。只读。The focal length from the camera. Read-only.
isoiso Int32Int32 相机的 ISO 值。只读。The ISO value from the camera. Read-only.
orientationorientation Int16Int16 相机的方向值。The orientation value from the camera. 在 OneDrive 个人上可写。Writable on OneDrive Personal.


OneDrive for Business 和 SharePoint 仅返回 takenDateTime 属性。OneDrive for Business and SharePoint only return the takenDateTime property.

有关 DriveItem 方面的详细信息,请参阅 DriveItemFor more information about the facets on a DriveItem, see DriveItem.