IDynamicKeyProviderConcept::SetKey method (dbgmodel.h)
The SetKey method on a dynamic key provider is effectively an override of the SetKey method on IModelObject. This sets a key in the dynamic provider. It is effectively the creation of a new property on the provider. Note that a provider which does not support any notion of something like the creation of expando properties should return E_NOTIMPL here.
Syntax
HRESULT SetKey(
IModelObject *contextObject,
PCWSTR key,
IModelObject *keyValue,
IKeyStore *metadata
);
Parameters
contextObject
The instance object (this pointer) for which to set a key.
key
The name of the key to set.
keyValue
The value of the key to set.
metadata
Optional metadata to be associated with the (newly created) key.
Return value
This method returns HRESULT which indicates success or failure.
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |