Run a logout command on the server
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.261.8274
Syntax public bool Logout(
StringList options,
string user = null
)
Public Function Logout (
options As StringList,
Optional user As String = Nothing
) As Boolean
public:
bool Logout(
StringList^ options,
String^ user = nullptr
)
member Logout :
options : StringList *
?user : string
(* Defaults:
let _user = defaultArg user null
*)
-> bool
Parameters
- options
- Type: Perforce.P4StringList
The -a flag invalidates the ticket on the server. - user (Optional)
- Type: SystemString
The user to log out (requires super access)
Return Value
Type:
BooleanSuccess/Failure
Remarks
If the server requires a login (security level >= 3), this will
logout the user and remove the local ticket.
See Also