DownloadOperation.IsRandomAccessRequired DownloadOperation.IsRandomAccessRequired DownloadOperation.IsRandomAccessRequired DownloadOperation.IsRandomAccessRequired DownloadOperation.IsRandomAccessRequired Property

Definition

A boolean property to enable random access. The property must be set to TRUE before calling StartAsync() on a DownloadOperation object to use the random access feature. After calling StartAsync(), call GetResultRandomAccessStreamReference to get a reference to the random access stream and read from it.

public : Platform::Boolean IsRandomAccessRequired { get; set; }
bool IsRandomAccessRequired();

void IsRandomAccessRequired(bool israndomaccessrequired);
public bool IsRandomAccessRequired { get; set; }
Public ReadWrite Property IsRandomAccessRequired As bool
var bool = downloadOperation.isRandomAccessRequired;
downloadOperation.isRandomAccessRequired = bool;

Property Value

bool bool bool

TRUE to use the random access feature. The default value is FALSE.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

The IsRandomAccessRequired setter will fail with E_ILLEGAL_METHOD_CALL and a custom error message if StartAsync() has already been called on the DownloadOperation.

See also