Get a list of depots from the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public IList<Depot> GetDepots()
Visual Basic
Public Function GetDepots As IList(Of Depot)
Visual C++
public:
IList<Depot^>^ GetDepots()

Return Value

A list containing the matching depots

Remarks


p4 help depots

depots -- Lists defined depots

p4 depots

Lists all depots defined in the server.
Depots takes no arguments.

Examples

To list the depots on the server:
CopyC#
IList<Depot> depots = Repository.GetDepots();

See Also