ISettingsItem::CreateListElement method (wcmconfig.h)
Creates a new list element.
Syntax
HRESULT CreateListElement(
[in] const VARIANT *KeyData,
[out] ISettingsItem **Child
);
Parameters
[in] KeyData
The information for the key that defines the identity of the new list item. To determine the correct value for the key data parameter, consult the information returned from ISettingsItem::GetListKeyInformation. The variant obtained from ISettingsItem::GetListKeyInformation should be coercible to the type of the key. If the ISettingsItem::GetListKeyInformation method returns S_FALSE, use a string type for the key data.
[out] Child
A pointer to the newly created ISettingsItem list item.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that the method is called on an item that is not of setting type list. |
|
Indicates an attempt to create a list where the key cannot be coerced to the correct type. |
|
Indicates that the item cannot be written, either because it is a read-only item, or because the namespace was opened in ReadOnly mode. |
Remarks
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wcmconfig.h |
DLL | SMIEngine.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for