Automate the Login to the Perforce Server
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)
Syntax
C# |
---|
public Credential Login( string password ) |
Visual Basic |
---|
Public Function Login ( _ password As String _ ) As Credential |
Visual C++ |
---|
public: Credential^ Login( String^ password ) |
Parameters
- password
- Type: System..::..String
User password
Return Value
Success/Failure
Remarks
Runs the login process. If the server is using ticket based
authentication, actually runs the logon three times. Once to
login and update the ticket file, once to get the ticket from
the server and finally once to get the ticket expiration data.