Show / Hide Table of Contents

Struct FolderPath

Most functions of folders class return a value of this type. Contains folder path (string) and has operator + to append a string with backslash if need. Has implicit conversions from/to string.

public struct FolderPath

Namespace: Au.Types
Assembly: Au.dll

Constructors

Name Description
FolderPath(string)

Properties

Name Description
IsNull

Returns true if the path is null.

Path

Returns the path string. For some folders it can be null.

PathOrThrow

Returns the path string. If it is null, throws InvalidOperationException.

Methods

Name Description
ToString()

Returns FolderPath.Path.

Operators

Name Description
operator +(FolderPath, string)

Calls pathname.combine. Example: string s = folders.Desktop + "file.txt";

explicit operator FolderPath(string)
implicit operator string(FolderPath)