Get a list of depots from the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
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();