[This is preliminary documentation and is subject to change.]

Get a list of clients from the repository

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

Syntax

C#
public IList<Client> GetClients(
	Options options
)
Visual Basic
Public Function GetClients ( _
	options As Options _
) As IList(Of Client)
Visual C++
public:
IList<Client^>^ GetClients(
	Options^ options
)

Parameters

options
Type: Perforce.P4..::..Options
options for the clients commandClientsCmdOptions

Return Value

A list containing the matching clients

Remarks


p4 help clients

clients -- Display list of clients
workspaces -- synonym for 'clients'

p4 clients [-t] [-u user] [[-e|-E] nameFilter -m max] [-S stream]

Lists all client workspaces currently defined in the server.

The -t flag displays the time as well as the date.

The -u user flag lists client workspaces that are owned by the
specified user.

The -e nameFilter flag lists workspaces with a name that matches
the nameFilter pattern, for example: -e 'svr-dev-rel*'. -E makes
the matching case-insensitive.

The -m max flag limits output to the specified number of workspaces.

The -S stream flag limits output to the client workspaces dedicated
to the stream.


See Also