IDirList.index(Int32, String) Method

Definition

Retrieves an item, by position, from the directory list.

public:
 int index(int nItem, [Runtime::InteropServices::Out] System::String ^ % pbstrItem);
int index(int nItem, [Runtime::InteropServices::Out] std::wstring const & & pbstrItem);
[System.Runtime.InteropServices.DispId(1610743816)]
public int index (int nItem, out string pbstrItem);
[<System.Runtime.InteropServices.DispId(1610743816)>]
abstract member index : int * string -> int
Public Function index (nItem As Integer, ByRef pbstrItem As String) As Integer

Parameters

nItem
Int32

[in] Index (position) of the item to return.

pbstrItem
String

[out] String containing the directory item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Attributes

Applies to