Click or drag to resize

Path Class

Static methods to perform operations on paths.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CrestronIOPath

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public sealed class Path

The Path type exposes the following members.

Methods
 NameDescription
Public methodStatic memberChangeExtension Changes the extension of the specified path string.
Public methodStatic memberChangeExtentionObsolete.
Changes the extension of the specified path string.
Public methodStatic memberCombine Combines two path strings.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetDirectoryName Returns the directory information from the specified path string.
Public methodStatic memberGetExtension Returns the extension of the specified path.
Public methodStatic memberGetExtentionObsolete.
Returns the extension of the specified path.
Public methodStatic memberGetFileName Returns the file name and extension of the specified path.
Public methodStatic memberGetFileNameWithExtension Returns the file name and extension of the specified path.
Public methodStatic memberGetFileNameWithoutExtension Returns the file name without the extension of the specified path.
Public methodStatic memberGetFreeSpace Function to return the number of bytes available on the drive of the specified path.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetInvalidPathChars Gets an array that contains the characters not allowed in path names.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHasExtension Determines whether a path contains a file name extension.
Public methodStatic memberIsPathRooted Gets a value indicating whether the specified path string contains absolute or relative path information.
Remarks
Note, absolute paths are expected for operations like opening or creating a file in the File class.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberAltDirectorySeparatorChar Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public fieldStatic memberDirectorySeparatorChar Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public fieldStatic memberPathSeparator A platform-specific separator character used to separate path strings in environment variables.
Public fieldStatic memberVolumeSeparatorChar Provides a platform-specific volume separator character.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also