Autodesk Vault Programmer's Cookbook/Login/Log in to Vault

Problem
Establish Autodesk Vault connection.

Solution
Create WebServiceManager from Autodesk.Connectivity.WebServices.dll with credentials parameters.

Discussion
WebServiceManager is your gates to the garden of Vaulty API. And IWebServiceCredentials is a key to this gates.

You can create this key in at least 16 different ways (A-P) of getting IWebServiceCredentials.

After connection you can get next information about connection:

Connecting is quite simple operation, but its fundamental for any program that needs connect to Vault server. Here's algorithm, that describes logging with UserPasswordCredentials:

And here's "cmd edition", that handles errors and gives more verbose:

And the best way to login - is certainly by using dialogs fromVDF.

As a result, you'll get a login dialog with the information you entered last time.