A class that allows to store paths and prevents duplicates
| C# | Visual Basic | Visual C++ |
[SerializableAttribute] public class PathCollection : NameObjectCollectionBase, ICollection<string>, IEnumerable<string>, IEnumerable
<SerializableAttribute> _ Public Class PathCollection _ Inherits NameObjectCollectionBase _ Implements ICollection(Of String), IEnumerable(Of String), _ IEnumerable
[SerializableAttribute] public ref class PathCollection : public NameObjectCollectionBase, ICollection<String^>, IEnumerable<String^>, IEnumerable
| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
| PathCollection()()() |
Initializes a new instance of the PathCollection class
| |
| PathCollection(IEnumerable<(Of <(String>)>)) |
Initializes a new instance of the PathCollection class and fills it with the given enumerable string collection.
| |
| PathCollection(IDataObject) |
Initializes a new instance of the PathCollection class and fills it
with the filename(s) in the given IDataObject
| |
| PathCollection(StringCollection) |
Initializes a new instance of the PathCollection class and fills it with the given StringCollection | |
| PathCollection(String) |
Initializes a new instance of the PathCollection class and fills it with the given String.
| |
| Add(String) |
Adds the given path to the list of path.
| |
| Add(IEnumerable) |
Add all items of the given enumrable class to the list.
| |
| AddPath(String) |
Adds the given path to the list of path. It does not fire the Changing and Change event.
| |
| BaseAdd(String, Object) |
Adds an entry with the specified key and value into the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseClear()()() |
Removes all entries from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGet(String) |
Gets the value of the first entry with the specified key from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGet(Int32) |
Gets the value of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGetAllKeys()()() |
Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGetAllValues()()() |
Returns an Object array that contains all the values in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGetAllValues(Type) |
Returns an array of the specified type that contains all the values in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseGetKey(Int32) |
Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseHasKeys()()() |
Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not null.
(Inherited from NameObjectCollectionBase.) | |
| BaseRemove(String) |
Removes the entries with the specified key from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseRemoveAt(Int32) |
Removes the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseSet(String, Object) |
Sets the value of the first entry with the specified key in the NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| BaseSet(Int32, Object) |
Sets the value of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| Change |
This event gets fired after items were added or deleted
| |
| Changing |
This event gets fired before items are added or deleted
| |
| CheckIfExists |
If true, paths that do not exist will not be added to the list
| |
| Clear()()() |
Removes all elements from the list
| |
| Clone()()() |
Creates a copy of the current PathCollection
| |
| Contains(String) |
Returns true if the given path is in the list
| |
| CopyTo(array<String>[]()[], Int32) |
Copies the elements of the PathCollection to an Array, starting at a particular Array index.
| |
| Count |
Gets the number of key/value pairs contained in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| Delete(Int32) |
Removes the path with the given index from the list.
| |
| DOUBLE_SLASH |
Contains a pair of slashes as it appears at the beginning of UNC paths.
| |
| Equals(Object) | (Inherited from Object.) | |
| ExcludeTrailingPathDelimiter(String) |
Makes sure that the given paths does not end with System.IO.Path.DirectorySeperatorChar.
| |
| FileOrFolderExists(String) |
Checks if the given path exists.
| |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetDomainFromUNCPath(String) |
Returns the domain name from a UNC path
| |
| GetEnumerator()()() |
Returns an enumerator that iterates through the NameObjectCollectionBase.
(Inherited from NameObjectCollectionBase.) | |
| GetFolderSize(String) |
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.
path must include a trailing backslash
| |
| GetFolderSize(String, PathCollection..::.GetFolderSizeCallback, Object) |
Asynchronoulsy calculates the size of a folder, including all files in all subfolders, and the file count.
| |
| GetFolderSize260(String, Int32%, Int32%) |
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 4.0.0.3
path must include a trailing backslash
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetObjectData(SerializationInfo, StreamingContext) |
Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| GetParentPathFromPath(String) |
Returns the parent path of the given path.
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| GetUNCPathFromMappedDrive(String) |
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.
| |
| IncludeTrailingPathDelimiter(String) |
Makes sure that the given paths end with System.IO.Path.DirectorySeparatorChar.
| |
| IndexOf(String) |
Returns the index of the given path.
| |
| IsAbsolutePath(String) |
Determines if the given path is absolute.s
| |
| IsDrive(String) |
Checks if the given path is a drive.
| |
| IsLocalPath(String) |
Determine whether the path is on a local file system,
i.e. starts with "c:\" where c can be any drive letter.
| |
| IsReadOnly |
Gets a value indicating whether the collection is read-only.
| |
| IsSubPathOf(String, String) |
Checks if a given path is a parent path of the other given path.
| |
| IsUNCPath(String) |
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
| |
| Item[([(Int32])]) |
Returns a path with a certain index.
| |
| Keys |
Gets a NameObjectCollectionBase..::.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Objects(Int32) |
Returns the object associated with a path.
| |
| OnChanged()()() |
Fires the Change event
| |
| OnChanging()()() |
Fires the Change event
| |
| OnDeserialization(Object) |
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from NameObjectCollectionBase.) | |
| PathWasRenamed(String, String) |
Call this method to update the collection, e.g. upon path rename
| |
| Remove(String) |
Removes a path from the list.
| |
| SamePath(String, String) |
Checks if two paths are identical
| |
| ToString()()() |
Override the inherited method ToString().
(Overrides Object.ToString()()().) | |
| UnifyPath(String) |
Brings the path into a unified format. This makes it easier to eliminate duplicates.
| |
| Update(Int32, Object) |
Updates the object associated with a path.
|
| Object | |||
| NameObjectCollectionBase | |||
| PathCollection | |||
| BaseSelectionList | |||