Interface IPath
Interface for convenience methods associated with file or directory paths.
Namespace: Dicom.IO
Assembly: cs.temp.dll.dll
Syntax
public interface IPath
Methods
Combine(String[])
Combines an array of strings into a path.
Declaration
string Combine(params string[] paths)
Parameters
Type | Name | Description |
---|---|---|
String[] | paths | An array of parts of the path. |
Returns
Type | Description |
---|---|
String | The combined paths. |
GetDirectoryName(String)
Returns the directory information for the specified path string.
Declaration
string GetDirectoryName(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of a file or directory. |
Returns
Type | Description |
---|---|
String | Directory information for path, or null if path denotes a root directory or is null. Returns Empty if path does not contain directory information. |
GetTempDirectory()
Returns the path of the current user's temporary folder.
Declaration
string GetTempDirectory()
Returns
Type | Description |
---|---|
String | The path to the temporary folder, ending with a backslash. |
GetTempFileName()
Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
Declaration
string GetTempFileName()
Returns
Type | Description |
---|---|
String | The full path of the temporary file. |