RepositoryGetServerMetaData Method (Options)
|
Get server information.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax public ServerMetaData GetServerMetaData(
Options options
)
Public Function GetServerMetaData (
options As Options
) As ServerMetaData
public:
ServerMetaData^ GetServerMetaData(
Options^ options
)
member GetServerMetaData :
options : Options -> ServerMetaData
Parameters
- options
- Type: Perforce.P4Options
Return Value
Type:
ServerMetaDataInformation about 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 server root:
ServerMetaData s = rep.GetServerMetaData(null);
string root = s.Root;
To get the server case handling:
ServerMetaData s = rep.GetServerMetaData(null);
bool caseSensitive = s.CaseSensitive;
See Also