INameValueCollection::AddNameValue method

Adds a name/value pair to the collection.

Syntax

HRESULT AddNameValue(
  [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.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

INameValueCollection