Folder.HasParent

True if the folder has a parent, false if it is a top-level folder.

public bool HasParent { get; }

See also:

Class Folder