Search Results for

    Show / Hide Table of Contents

    Class DesktopDirectoryReference

    .NET/Windows Desktop implementation of the IDirectoryReference interface.

    Inheritance
    Object
    DesktopDirectoryReference
    Implements
    IDirectoryReference
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Implements

    IDirectoryReference
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors