Get client application information.

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

Syntax

C#
public ClientMetadata GetClientMetadata()
Visual Basic
Public Function GetClientMetadata As ClientMetadata
Visual C++
public:
ClientMetadata^ GetClientMetadata()

Return Value

Information avout a connection's client-side application context.

Remarks



p4 help info

info -- Display client/server information

p4 info [-s]

Info lists information about the current client (user name,
client name, applicable client root, client current directory,
and the client IP address) and some server information (server
IP address, server root, date, uptime, version and license data).

The -s option produces 'short' output that omits any information
that requires a database lookup such as the client root).

Examples

To get the current client host name:
CopyC#
ClientMetadata c = rep.GetClientMetadata();
string machinename = c.HostName;

See Also