IBackgroundTransferOperation IBackgroundTransferOperation IBackgroundTransferOperation IBackgroundTransferOperation Interface

Definition

Represents a background transfer operation.

public : interface IBackgroundTransferOperation
public interface IBackgroundTransferOperation
Public Interface IBackgroundTransferOperation
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CostPolicy CostPolicy CostPolicy CostPolicy

Gets and sets the cost policy for the background transfer.

public : BackgroundTransferCostPolicy CostPolicy { get; set; }
public BackgroundTransferCostPolicy CostPolicy { get; set; }
Public ReadWrite Property CostPolicy As BackgroundTransferCostPolicy
var backgroundTransferCostPolicy = iBackgroundTransferOperation.costPolicy;
iBackgroundTransferOperation.costPolicy = backgroundTransferCostPolicy;
Value
BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy

Specifies whether the transfer can happen over costed networks.

Group Group Group Group

Note

Group may be altered or unavailable for releases after Windows 8.1. Instead, use the relevant DownloadOperation or UploadOperation TransferGroup.

Gets a string value indicating the group the transfer belongs to.

public : Platform::String Group { get; }
public string Group { get; }
Public ReadOnly Property Group As string
var string = iBackgroundTransferOperation.group;
Value
Platform::String string string string

The group name.

Guid Guid Guid Guid

Gets the Guid for the background transfer operation.

public : Platform::Guid Guid { get; }
public Guid Guid { get; }
Public ReadOnly Property Guid As Guid
var guid = iBackgroundTransferOperation.guid;
Value
Platform::Guid Guid Guid Guid

The unique ID for the background transfer operation.

Method Method Method Method

Specifies the method to use for the background transfer operation.

public : Platform::String Method { get; }
public string Method { get; }
Public ReadOnly Property Method As string
var string = iBackgroundTransferOperation.method;
Value
Platform::String string string string

The method to use. This value can be GET, PUT, RETR, or STOR.

RequestedUri RequestedUri RequestedUri RequestedUri

Gets the URI for the background transfer.

public : Uri RequestedUri { get; }
public Uri RequestedUri { get; }
Public ReadOnly Property RequestedUri As Uri
var uri = iBackgroundTransferOperation.requestedUri;
Value
Uri Uri Uri Uri

The URI.

Methods

GetResponseInformation() GetResponseInformation() GetResponseInformation() GetResponseInformation()

Gets the response infomation.

public : ResponseInformation GetResponseInformation()
public ResponseInformation GetResponseInformation()
Public Function GetResponseInformation() As ResponseInformation
var responseInformation = iBackgroundTransferOperation.getResponseInformation();
Returns

Contains the data returned by a server response.

GetResultStreamAt(UInt64) GetResultStreamAt(UInt64) GetResultStreamAt(UInt64) GetResultStreamAt(UInt64)

Gets the partial response at the specified position.

public : IInputStream GetResultStreamAt(unsigned __int64 position)
public IInputStream GetResultStreamAt(UInt64 position)
Public Function GetResultStreamAt(position As UInt64) As IInputStream
var iInputStream = iBackgroundTransferOperation.getResultStreamAt(position);
Parameters
position
unsigned __int64 UInt64 UInt64 UInt64

The position at which to start reading.

Returns