packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/ShellLibrary.cs
/// <summary>
/// Determines if an item with the specified path exists in the collection.
/// </summary>
/// <param name="fullPath">The path of the item.</param>
/// <returns><B>true</B> if the item exists in the collection.</returns>
Determines if an item with the specified path exists in the collection.
Determines if an item with the specified path exists in the collection .
public bool Contains(string fullPath)
        {
            if (string.IsNullOrEmpty(fullPath))
            {
                throw new ArgumentNullException("fullPath");
            }
            return ItemsList.Any(folder => string.Equals(fullPath, folder.Path, StringComparison.OrdinalIgnoreCase));
        }
public bool Contains ( string fullPath ) { if ( string . IsNullOrEmpty ( fullPath ) ) { throw new ArgumentNullException ( " " ) ; } return ItemsList . Any ( folder => string . Equals ( fullPath , folder . Path , StringComparison . OrdinalIgnoreCase ) ) ; }
Determines if an item with the specified path exists in the collection.
Determines if an item with the specified path exists in the collection .
None
fullPath
string
The path of the item.
The path of the item .