Click or drag to resize

PathCollection Methods

The PathCollection type exposes the following members.

Methods
  NameDescription
Public methodAdd(IEnumerable)
Add all items of the given enumrable class to the list.
Public methodAdd(String)
Adds the given path to the list of path.
Public methodAdd(IEnumerableIJamItemIdList)
Adds the paths of the passed ItemIdLists to the list.
Protected methodAddPath
Adds the given path to the list of path. It does not fire the Changing and Change event.
Public methodBeginUpdate
Prevent that the SelectionListChanged event is fired until EndUpdate is called. Every call of BeginUpdate() increments an UpdateCounter variable.
Public methodClear
Removes all elements from the list
Public methodClone
Creates a copy of the current PathCollection
Public methodContains
Returns true if the given path is in the list
Public methodCopyTo
Copies the elements of the PathCollection to an Array, starting at a particular Array index.
Public methodDelete
Removes the path with the given index from the list.
Public methodDispose
Releases ressources.
Protected methodDispose(Boolean)
Releases managed ressources.
Public methodEndUpdate
Every call of EndUpdate() decrements the UpdateCounter variable. When the UpdateCounter is 0, then the SelectionListChanged event is fired.
Public methodStatic memberExcludeTrailingPathDelimiter
Makes sure that the given paths does not end with System.IO.Path.DirectorySeperatorChar.
Public methodStatic memberFileOrFolderExists
Checks if the given path exists.
Public methodStatic memberGetDomainFromUNCPath
Returns the domain name from a UNC path
Public methodStatic memberGetFileSize
Gets the file size in byte.
Public methodStatic memberGetFolderSize(String)
Returns the size of a folder, including all files in all subfolders.
Public methodStatic memberGetFolderSize(String, Int32, Int32)
Returns the size of a folder, including all files in all subfolders, and the file count.
Public methodStatic memberGetFolderSize260
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
Public methodStatic memberGetLongPath
A wrapper for ShellApi.GetLongPathName
Public methodStatic memberGetParentPathFromPath
Returns the parent path of the given path.
Public methodStatic memberGetUNCPathFromMappedDrive
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.
Public methodStatic memberIncludeTrailingPathDelimiter
Makes sure that the given paths end with System.IO.Path.DirectorySeparatorChar.
Public methodIndexOf
Returns the index of the given path.
Public methodStatic memberIsAbsolutePath
Determines if the given path is absolute.s
Public methodStatic memberIsDrive
Checks if the given path is a drive.
Public methodStatic memberIsLocalPath
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:\")
Public methodStatic memberCode exampleIsSubPathOf
Checks if a given path is a parent path of the other given path.
Public methodStatic memberIsUNCPath
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
Public methodIsUpdating
Query if this instance is currently updating.
Public methodObjects
Returns the object associated with a path.
Protected methodOnChanged
Fires the Change event.
Protected methodOnChanging
Fires the Changing event.
Public methodPathWasRenamed
Call this method to update the collection, e.g. upon path rename.
Public methodRemove
Removes a path from the list.
Protected methodRemovePath
Removes the given path.
Public methodStatic memberSamePath
Checks if two paths are identical
Public methodToString
Override the inherited method ToString().
(Overrides ObjectToString.)
Public methodStatic memberUnifyPath
Brings the path into a unified format. This makes it easier to eliminate duplicates.
Public methodUpdate
Updates the object associated with a path.
Top
See Also