IProviderPropertyConstraintCollection::Get 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 property key.
Syntax
HRESULT Get(
[in] REFPROPERTYKEY Key,
[out] PROPVARIANT *pPropVar,
[out] DWORD *pdwPropertyConstraint
);
Parameters
[in] Key
The property key.
[out] pPropVar
A VARIANT used for the property key constraint value.
[out] pdwPropertyConstraint
The type of constraint to apply.
Return value
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
The method completed successfully. |
|
The method completed successfully, but the property key was not found in the collection. |
|
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 |