EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method IsReserved

    IsReserved(string)

    Checks if a given file name is a reserved name in Windows.

    Declaration
    public static bool IsReserved(string fileName)
    Parameters
    Type Name Description
    string fileName

    The file name to check.

    Returns
    Type Description
    bool

    true if the file name is reserved by the Windows operating system (e.g., "CON", "PRN", "AUX", etc.); otherwise, false.

    Remarks

    Windows reserves certain file names that cannot be used as regular file or directory names. This method checks if the provided file name is one of those reserved names. The check is case-insensitive.

    2025 © Xab3r. All rights reserved.