Share via


IDirList.Add(String) Method

Definition

Adds a string to a directory list.

public:
 int Add(System::String ^ bstrItem);
public:
 int Add(Platform::String ^ bstrItem);
int Add(std::wstring const & bstrItem);
[System.Runtime.InteropServices.DispId(1610743817)]
public int Add (string bstrItem);
[<System.Runtime.InteropServices.DispId(1610743817)>]
abstract member Add : string -> int
Public Function Add (bstrItem As String) As Integer

Parameters

bstrItem
String

[in] A string to add to the directory listing.

Returns

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

Attributes

Applies to