Click or drag to resize

FilePath Properties

The FilePath type exposes the following members.

Properties
  NameDescription
Public propertyBaseFilePath
If the path is relative, a BaseFilePath can be set. If a BaseFilePath is not set, then the CurrentDirectory will be used as BaseFilePath. For absolute paths, BaseFilePath is ignored. Only the directory part of the BaseFilePath is used.
Public propertyDirectoryName
Gets the directory name of the filepath. It will return relative or absolute directory, depending on whether the filepath is relative or absolute.
Public propertyExtension
Gets or alters the extension of the file. The extionsion is returned with the dot, i.e., on the form ".ext". If no extension exists, the empty string is returned. If path is null, null is returned. It can be set with or without the dot.
Public propertyFileName
Gets/alters the filename including extension
Public propertyFileNameWithoutExtension
Gets/alters the filename without the extension
Public propertyFullDirectoryName
Gets the full directory name of the filepath. It will return an absolute directory.
Public propertyFullFilePath
Gets the full directory name of the filepath, including file name. It will return an absolute directory.
Public propertyHasPath
Return true if FilePath has a Path, false if empty.
Public propertyIsRelative
Returns true if the FilePath is relative
Public propertyPath
Get/set file name including path. The path can be absolute or relative.
Public propertyRelativeDirectoryName
Gets the relative directory name of the filepath. It will return a directory relative to BaseFilePath or CurrentDirectory.
Public propertyRelativeFilePath
Gets the relative directory name of the filepath, including file name. It will return a directory relative to BaseFilePath or CurrentDirectory.
Top
See Also