Click or drag to resize

RepositoryGetDepots Method

Get a list of depots from the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public IList<Depot> GetDepots()

Return Value

Type: IListDepot
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:
IList<Depot> depots = Repository.GetDepots();
See Also