IDictionary::put_Value

The put_Value method adds a new element to a Dictionary, or reinitializes an existing element.

HRESULT put_Value(
BSTRbstrName,// in
VARIANTvarNew// in
);

Parameters

bstrName
The name of the element to add or reinitialize.
varNew
The value to which the element should be initialized.

Include File

<commerce.h>

Return Value

Value Meaning
S_OK The new element was added, or the value of an existing element was changed.
E_OUTOFMEMORY Memory could not be allocated for a new element.

Related Topic

IDictionary::get_Value


© 1997-1998 Microsoft Corporation. All rights reserved.