The FileSystemItem type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| FileSystemItem |
Item must be UnifiedFile or UnifiedDirectory
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| 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.) | |
| GetChildren |
Returns the children for this item
| |
| GetExtensionImage |
Gets the ImageUrl for a file extension. This method relies on Theming
and therefore a page context must be in HttpContext.Current.Handler,
otherwise an empty string is returned. This gives an app relative path as:
~/App_Themes/[Page Theme]/Images/Extensions/[Ext].gif
| |
| GetFolderImage |
Returns the url to the folder image from
~/App_Themes/[Page Theme]/Images/ExplorerTree/FileTree/Folder.gif.
If no Page context an emtpy string is returned.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetParent |
Gets the parent for this item
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString |
This implemementation returns the Name of the wrapped item, used if bind to a TreeView and no
explicit Text is specified
(Overrides Object..::.ToString()()().) |
Properties
| Name | Description | |
|---|---|---|
| Author |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is string.Empty
| |
| Category |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is string.Empty
| |
| Changed |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is DateTime.MinValue
| |
| Children |
Children for this item
| |
| Comments |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is string.Empty
| |
| Created |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is DateTime.MinValue
| |
| DataSource |
The datasource this item is related to
| |
| HasChildren |
Indicates if the wrapped item has any children
| |
| ImageUrl |
Url for this item, change defualt images by eventhandler to FileSystemDataSource controls
events ResolveDirectoryImageUrl and ResolveFileImageUrl
| |
| IsDirectory |
States if this item wraps a directory
| |
| IsFile |
States if this item wraps a file
| |
| Item |
Gets the wrapped item, either a UnifiedFile or an UnifiedDirectory
| |
| Keywords |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is string.Empty
| |
| Length |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is 0
| |
| Name |
The Name of the wrapped item
| |
| Path |
The path for the wrapped item
| |
| Subject |
Only meaningful if wrapped item is UnifiedFile, for UnifiedDirectory this is string.Empty
| |
| Title |
If wrapped item is UnifiedFile this is Title, if wrapped item is UnifiedDirectory this is same as Name
| |
| Type |
A string representation of the wrapped items type
|