Xceed .NET Libraries Documentation
FileSystemType Property


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > PathExceptionEventArgs Class : FileSystemType Property
Gets the FileSystem type that was involved when the exception was thrown.
Syntax
'Declaration
 
Public ReadOnly Property FileSystemType As Type
'Usage
 
Dim instance As PathExceptionEventArgs
Dim value As Type
 
instance.FileSystemType = value
 
value = instance.FileSystemType
public Type FileSystemType {get;}

Property Value

A System.Type object representing the FileSystem type that was involved when the exception was thrown. Cannot be a null reference (Nothing in Visual Basic).
Remarks
The PathException event is typically raised during the creation of FileSystem-derived objects,in its constructor. As such, an object instance is not ready for use yet and the CurrentItem and TargetItem properties might be a null reference (Nothing in Visual Basic) or refer to the parent folder of the item being built.
    
To enact proper contingencies, it is useful to know, at the very least, if the path specified refers to a file or a folder.
    
It might also useful to know what exact object type was being created when the event was raised because most often, the exception is caused by incompatibilities between different file systems like path lengths or different invalid characters.
    
This property indicates, when possible, what type is involved and allows for specialized path resolution according to the specific rules of the target FileSystem.
    
Sometimes, the exact target type isn't known but the component knows its trying to create a file or folder. In these cases, the value will be typeof( AbstractFile ) and typeof( AbstractFolder ) respectively.
    
If the target FileSystem type isn't known at all, the value will be typeof( FileSystemItem ).
Example
PathException event
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PathExceptionEventArgs Class
PathExceptionEventArgs Members