IFunctionDiscoveryProviderFactory::CreatePropertyStore 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.]

Enables providers to reuse the in-memory property store implementation.

Syntax

HRESULT CreatePropertyStore(
  [out] IPropertyStore **ppIPropertyStore
);

Parameters

[out] ppIPropertyStore

A pointer to an IPropertyStore interface pointer.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If providers wish to cache properties, either when the function instance is created or when the property store is first opened, the provider can use this method to create an in memory property store, set properties as necessary, and then either assign it to the function instance at creation time using CreateInstance or when the property store is first opened using InstancePropertyStoreOpen.

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

IFunctionDiscoveryProviderFactory