INameValueCollection::Set method

Creates a name/value pair and adds it to the collection.

Syntax

HRESULT Set(
  [in] BSTR Name,
  [in] BSTR Value
);

Parameters

  • Name [in]
    The name.

  • Value [in]
    The value.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

This method searches for the first occurrence of the name. If the name is found, the method replaces the value; otherwise, the name/value pair is added to the end of the collection.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

INameValueCollection