PathCollection Methods |
The PathCollection type exposes the following members.
Name | Description | |
---|---|---|
Add(IEnumerable) |
Add all items of the given enumrable class to the list.
| |
Add(String) |
Adds the given path to the list of path.
| |
Add(IEnumerableIJamItemIdList) | Adds the paths of the passed ItemIdLists to the list. | |
AddPath |
Adds the given path to the list of path. It does not fire the Changing and Change event.
| |
BeginUpdate |
Prevent that the SelectionListChanged event is fired until EndUpdate is called. Every call of BeginUpdate() increments an UpdateCounter variable.
| |
Clear |
Removes all elements from the list
| |
Clone |
Creates a copy of the current PathCollection
| |
Contains |
Returns true if the given path is in the list
| |
CopyTo |
Copies the elements of the PathCollection to an Array, starting at a particular Array index.
| |
Delete |
Removes the path with the given index from the list.
| |
Dispose |
Releases ressources.
| |
Dispose(Boolean) |
Releases managed ressources.
| |
EndUpdate |
Every call of EndUpdate() decrements the UpdateCounter variable. When the UpdateCounter is 0, then the SelectionListChanged event is fired.
| |
ExcludeTrailingPathDelimiter |
Makes sure that the given paths does not end with System.IO.Path.DirectorySeperatorChar.
| |
FileOrFolderExists |
Checks if the given path exists.
| |
GetDomainFromUNCPath |
Returns the domain name from a UNC path
| |
GetFileSize |
Gets the file size in byte.
| |
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.
| |
GetFolderSize260 |
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
| |
GetLongPath |
A wrapper for ShellApi.GetLongPathName
| |
GetParentPathFromPath |
Returns the parent path of the given path.
| |
GetUNCPathFromMappedDrive |
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 |
Makes sure that the given paths end with System.IO.Path.DirectorySeparatorChar.
| |
IndexOf |
Returns the index of the given path.
| |
IsAbsolutePath |
Determines if the given path is absolute.s
| |
IsDrive |
Checks if the given path is a drive.
| |
IsLocalPath |
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:\")
| |
IsSubPathOf |
Checks if a given path is a parent path of the other given path.
| |
IsUNCPath |
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
| |
IsUpdating | Query if this instance is currently updating. | |
Objects |
Returns the object associated with a path.
| |
OnChanged |
Fires the Change event.
| |
OnChanging |
Fires the Changing event.
| |
PathWasRenamed |
Call this method to update the collection, e.g. upon path rename.
| |
Remove |
Removes a path from the list.
| |
RemovePath | Removes the given path. | |
SamePath |
Checks if two paths are identical
| |
ToString |
Override the inherited method ToString().
(Overrides ObjectToString.) | |
UnifyPath |
Brings the path into a unified format. This makes it easier to eliminate duplicates.
| |
Update |
Updates the object associated with a path.
|