IProviderPropertyConstraintCollection::Item method (functiondiscoveryprovider.h)

[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Gets the name and value of the specified property constraint, by index.

Syntax

HRESULT Item(
  [in]  DWORD       dwIndex,
  [out] PROPERTYKEY *pKey,
  [out] PROPVARIANT *pPropVar,
  [out] DWORD       *pdwPropertyConstraint
);

Parameters

[in] dwIndex

The index of the item in the collection.

[out] pKey

The property key.

[out] pPropVar

A PROPVARIANT used for the property constraint data.

[out] pdwPropertyConstraint

The type of constraint to apply.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
The method completed successfully.
E_POINTER
The ppropVar or pdwPropertyConstraint parameter is NULL.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header functiondiscoveryprovider.h

See also

IProviderPropertyConstraintCollection