IPortableDevicePropVariantCollection::GetAt method
The GetAt method retrieves an item from the collection by a zero-based index.
Syntax
HRESULT GetAt(
[in] const DWORD dwIndex,
[out] PROPVARIANT *pValue
);
Parameters
-
dwIndex [in]
-
DWORD that contains the zero-based index of the item to retrieve.
-
pValue [out]
-
Pointer to a PROPVARIANT structure. The caller is responsible for freeing this memory by calling PropVariantClear.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
A required pointer argument was NULL. |
|
The index that was passed in was out of range. |
Examples
For an example of how to use this method see Retrieving the Functional Categories Supported by a Device.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기