Logs the current agent in.

C# | Visual Basic | Visual C++ |
void Login()
Sub Login
void Login()

The method takes into account the following Agent properties:
- [!:AgentId] Mandatory.
- [!:AgentLogin] Mandatory if DNs.
- [!:AgentPassword] Mandatory if DNs.
- Place Mandatory.
- [!:Queue] Can be null.
- [!:WorkMode] Can be null.