IProviderQueryConstraintCollection::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 value of the specified query constraint, by name.

Syntax

HRESULT Get(
  [in]  const WCHAR *pszConstraintName,
  [out] WCHAR       **ppszConstraintValue
);

Parameters

[in] pszConstraintName

The constraint name.

[out] ppszConstraintValue

The constraint value.

Return value

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

Return code Description
S_OK
The method completed successfully.
S_FALSE
The method completed successfully, but the property key was not found in the collection.
E_POINTER
The pszConstraintName or ppszConstraintValue 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

IProviderQueryConstraintCollection