Class DesktopDirectoryReference
.NET/Windows Desktop implementation of the IDirectoryReference interface.
Implements
Inherited Members
Namespace: Dicom.IO
Assembly: cs.temp.dll.dll
Syntax
public class DesktopDirectoryReference : IDirectoryReference
Constructors
DesktopDirectoryReference(String)
Initializes a DesktopDirectoryReference object.
Declaration
public DesktopDirectoryReference(string directoryName)
Parameters
Type | Name | Description |
---|---|---|
String | directoryName | Name of the directory. |
Properties
Exists
Gets whether the directory exists or not.
Declaration
public bool Exists { get; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Path name of the current directory.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Create()
Create the directory path.
Declaration
public void Create()
EnumerateDirectoryNames()
Gets the names of the sub-directories in the current directory.
Declaration
public IEnumerable<string> EnumerateDirectoryNames()
Returns
Type | Description |
---|---|
IEnumerable<String> | Names of the sub-directories in the current directory. |
EnumerateFileNames(String)
Gets the file names of the files in the current directory.
Declaration
public IEnumerable<string> EnumerateFileNames(string searchPattern = null)
Parameters
Type | Name | Description |
---|---|---|
String | searchPattern | File search pattern; if null or empty all files in the directory should be returned. |
Returns
Type | Description |
---|---|
IEnumerable<String> | File names of the files in the current directory. |