Delen via


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:
 property bool IsRandomAccessRequired { bool get(); void set(bool value); };
bool IsRandomAccessRequired();

void IsRandomAccessRequired(bool value);
public bool IsRandomAccessRequired { get; set; }
var boolean = downloadOperation.isRandomAccessRequired;
downloadOperation.isRandomAccessRequired = boolean;
Public Property IsRandomAccessRequired As Boolean

Property Value

Boolean

bool

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

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

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.

Applies to

See also