public IList<string> BrowseForNames(
Session session,
BrowseElementFilter elementFilter,
string nameFilter,
short dataTypeFilter,
int accessRightsFilter)
{
// find the id of the current element.
string itemId = null;
lock (m_lock)
{
if (m_browsePosition != null)
{
itemId = m_browsePosition.ItemId;
}
}
// find the names.
IList<string> hits = m_cache.BrowseForNames(
session,
itemId,
elementFilter,
nameFilter,
dataTypeFilter,
accessRightsFilter);
if (hits == null)
{
throw ComUtils.CreateComException(ResultIds.E_UNKNOWNITEMID);
}
// return the names.
return hits;
}