Folder.ParentID

The ID of this folder's parent folder; 0 if this parent is a top-level folder.

public int ParentID { get; }

See also:

Class Folder