DownloadOperation.CostPolicy 属性

定义

获取并设置下载的成本策略。

public:
 property BackgroundTransferCostPolicy CostPolicy { BackgroundTransferCostPolicy get(); void set(BackgroundTransferCostPolicy value); };
BackgroundTransferCostPolicy CostPolicy();

void CostPolicy(BackgroundTransferCostPolicy value);
public BackgroundTransferCostPolicy CostPolicy { get; set; }
var backgroundTransferCostPolicy = downloadOperation.costPolicy;
downloadOperation.costPolicy = backgroundTransferCostPolicy;
Public Property CostPolicy As BackgroundTransferCostPolicy

属性值

指定传输是否可以通过成本网络进行。

实现

适用于