IBackgroundCopyJob5::GetProperty 方法 (bits5_0.h)

用于获取 BITS 作业属性的泛型方法。

语法

HRESULT GetProperty(
  [in]  BITS_JOB_PROPERTY_ID    PropertyId,
  [out] BITS_JOB_PROPERTY_VALUE *PropertyValue
);

参数

[in] PropertyId

要获取的属性的 ID,指定为 BITS_JOB_PROPERTY_ID 枚举值。

[out] PropertyValue

作为BITS_JOB_PROPERTY_VALUE联合返回的属性值。

返回值

方法返回以下返回值。

返回代码 说明
S_OK
成功

要求

要求
最低受支持的客户端 Windows 8
最低受支持的服务器 Windows Server 2012
目标平台 Windows
标头 bits5_0.h (包括 Bits.h)
Library Bits.lib

另请参阅

IBackgroundCopyJob5

IBackgroundCopyJob5::SetProperty