[SerializableAttribute] public class PathCollection : NameObjectCollectionBase, ICollection<string>, IEnumerable<string>, IEnumerable, IDisposable
<SerializableAttribute> Public Class PathCollection Inherits NameObjectCollectionBase Implements ICollection(Of String), IEnumerable(Of String), IEnumerable, IDisposable
[SerializableAttribute] public ref class PathCollection : public NameObjectCollectionBase, ICollection<String^>, IEnumerable<String^>, IEnumerable, IDisposable
[<SerializableAttribute>] type PathCollection = class inherit NameObjectCollectionBase interface ICollection<string> interface IEnumerable<string> interface IEnumerable interface IDisposable end
Thetype exposes the following members.
Initializes a new instance of theclass
Initializes a new instance of the PathCollection class and fills it with the given enumerable string collection.
Initializes a new instance of the PathCollection class and fills it with the given enumerable ItemIdList collection.
Initializes a new instance of the PathCollection class and fills it with the given String.
Initializes a new instance of the PathCollection class and fills it with the given StringCollection
Gets or sets a value indicating whether to allow duplicate entries in the list.
If true, paths that do not exist will not be added to the list
Gets a value indicating whether the collection is read-only.
Returns a path with a certain index.
Add all items of the given enumrable class to the list.
Adds the paths of the passed ItemIdLists to the list.
Adds the given path to the list of path.
Adds the given path to the list of path. It does not fire the Changing and Change event.
Prevent that the SelectionListChanged event is fired until EndUpdate is called. Every call of BeginUpdate() increments an UpdateCounter variable.
Removes all elements from the list
Creates a copy of the current PathCollection
Returns true if the given path is in the list
Copies the elements of theto an Array, starting at a particular Array index.
Removes the path with the given index from the list.
Releases managed ressources.
Every call of EndUpdate() decrements the UpdateCounter variable. When the UpdateCounter is 0, then the SelectionListChanged event is fired.
Makes sure that the given paths does not end with System.IO.Path.DirectorySeperatorChar.
Checks if the given path exists.
Returns the domain name from a UNC path
Gets the file size in byte.
Returns the size of a folder, including all files in all subfolders.
|GetFolderSize(String, Int32, Int32)|
Returns the size of a folder, including all files in all subfolders, and the file count.
Returns the size of a folder, including all files in all subfolders, and the file count for paths that don't contain folders longer than 260 characters, this is the old implementation that was used in ShellBrowser.Net up to and including version 184.108.40.206
A wrapper for ShellApi.GetLongPathName
Returns the parent path of the given path.
This method needs the mpr.dll to work. (UNCPath length = max 1024 chars) This method should only be used with mapped drives, e.g. for a fixed drive an IOException occurs (Not Connected) See DriveType to determine whether the drive is a network share.
Makes sure that the given paths end with System.IO.Path.DirectorySeparatorChar.
Returns the index of the given path.
Determines if the given path is absolute.s
Checks if the given path is a drive.
Checks if the given path is an absolute local path (including mapped network drives), i.e. if it starts with a drive letter and is followed by a colon and a backslash ("c:\")
Checks if a given path is a parent path of the other given path.
Checks if the given path is a UNC path like \\Server\share. It does not check if the path really exists. see also http://msdn2.microsoft.com/en-us/library/aa365247.aspx#maximum_path_length
Query if this instance is currently updating.
Returns the object associated with a path.
Fires the Change event.
Fires the Changing event.
Call this method to update the collection, e.g. upon path rename.
Removes a path from the list.
Removes the given path.
Checks if two paths are identical
Override the inherited method ToString().(Overrides ObjectToString.)
Brings the path into a unified format. This makes it easier to eliminate duplicates.
Updates the object associated with a path.
This event gets fired after items were added or deleted.
This event gets fired before items are added or deleted.
Contains a pair of slashes as it appears at the beginning of UNC paths.