INativeConfigurationElementCollection::AddRawCollectionElement Method [IIS 7]

Adds a configuration element to a collection of native configuration elements.

virtual HRESULT STDMETHODCALLTYPE AddRawCollectionElement(
   INativeConfigurationElement * pConfigElement,
   ULONG ulPosition,
   VOID ** ppElementException = NULL
) = 0;

Parameters

  • pConfigElement
    [IN] A pointer to an INativeConfigurationElement interface.

  • ulPosition
    [IN] A ULONG value that specifies the index position for the element in the collection.

  • ppElementException
    [OUT] A pointer to a pointer to void. (Note: This is an infrastructure parameter and it is not intended to be used. Your application code should pass null for this parameter.)

Return Value

An HRESULT. Possible values include, but are not limited to, those in the following table.

Value

Description

S_OK

Indicates that the operation was successful.

NO_ERROR

Indicates that an error did not occur.

Requirements

Type

Description

Client

IIS 7

Server

IIS 7

Product

IIS 7

Header

Nativerd_pub.h