INapSoHProcessor::GetAttribute 方法
注意
从Windows 10开始,网络访问保护平台不可用
INapSoHProcessor::GetAttribute 方法检索给定属性位置的属性类型和值。
语法
HRESULT GetAttribute(
[in] UINT16 attributeLocation,
[out] SoHAttributeType *type,
[out] SoHAttributeValue **value
);
parameters
-
attributeLocation [in]
-
要检索其类型和值的属性的位置 (索引) 。 attributeLocation 的值是从之前对 INapSoHProcessor::FindNextAttribute 的调用中返回的。
-
type [out]
-
指向 SoHAttributeType 结构的指针,该结构指定 值中的属性类型。
-
value [out]
-
指向 SoHAttributeValue 结构的指针的指针,该结构包含 按类型定义的属性值。
返回值
也可能返回其他特定于 COM 的错误代码。
返回代码 | 说明 |
---|---|
|
操作成功。 |
|
权限错误,访问被拒绝。 |
|
系统资源限制,无法执行该操作。 |
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows Vista [仅限桌面应用] |
最低受支持的服务器 |
Windows Server 2008 [仅限桌面应用] |
标头 |
|
IDL |
|
DLL |
|