Language

FileUrlExpiredReason Enum

Definition

Distinguishes the two ways an inbound file's short-lived download URL can be found expired.

public enum FileUrlExpiredReason
type FileUrlExpiredReason = 
Public Enum FileUrlExpiredReason
Inheritance
FileUrlExpiredReason

Fields

Name Value Description
FirstFetch 0

The first fetch came after the URL lapsed, so no bytes were retrieved. There is no recovery: the URL carried its own credential, and the SDK does not fall back to Graph with an app identity. The file has to be sent again.

Reread 1

Edge case. An earlier download succeeded, then a later re-fetch through the same handle lapsed. Avoid it by calling DownloadAsync() once and reusing the returned DownloadedFile rather than re-reading the handle.

Applies to