ICertEncodeStringArray::SetValue method

The SetValue method sets a string value at the specified index of the string array.

You must call the ICertEncodeStringArray::Reset method before calling SetValue for the first time.

Syntax


HRESULT SetValue(
  [in]       LONG Index,
  [inconst BSTR str
);

Parameters

Index [in]

The zero-based index that specifies the element of the string array to set.

str [in]

Specifies the string value to set.

Return value

VB

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Examples

For an example that uses the SetValue method, see the ICertEncodeStringArray::Encode method.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certenc.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certenc.dll

IID

IID_ICertEncodeStringArray is defined as 12a88820-7494-11d0-8816-0a0c903b83cc

See also

ICertEncodeStringArray
ICertEncodeStringArray::Reset

 

 

Show: