StorageFile

A storage file (StorageFile class)

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
name string File name with extension
path string Full file path
displayName string File name without extension
fileType string File extension
contentType string MIME content type
dateCreated string
isAvailable boolean Whether the file content is available locally
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-storagefile-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StorageFile",
  "title": "StorageFile",
  "type": "object",
  "description": "A storage file (StorageFile class)",
  "properties": {
    "name": {
      "type": "string",
      "description": "File name with extension"
    },
    "path": {
      "type": "string",
      "description": "Full file path"
    },
    "displayName": {
      "type": "string",
      "description": "File name without extension"
    },
    "fileType": {
      "type": "string",
      "description": "File extension"
    },
    "contentType": {
      "type": "string",
      "description": "MIME content type"
    },
    "dateCreated": {
      "type": "string",
      "format": "date-time"
    },
    "isAvailable": {
      "type": "boolean",
      "description": "Whether the file content is available locally"
    }
  },
  "required": [
    "name",
    "path"
  ]
}