ISharedPropertyGroup::get_PropertyByPosition method (comsvcs.h)

Retrieves a reference to an existing shared property with the specified index.

Syntax

HRESULT get_PropertyByPosition(
  [in]  int             Index,
  [out] ISharedProperty **ppProperty
);

Parameters

[in] Index

The numeric index that was used to create the shared property that is retrieved.

[out] ppProperty

A reference to the shared property specified in the Index parameter, or NULL if the property does not exist.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the following values.

Return code Description
S_OK
The shared property exists, and a reference to it is returned in the ppProperty parameter.
E_INVALIDARG
The shared property with the index specified in the Index parameter does not exist.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ISharedProperty

ISharedPropertyGroup