Logs in to the vault with the specified name (e.g., 'Sample Vault'). Prompts the user for credentials.
| Visual Basic | 
|---|
| Public Function LogInAs( _ ByVal VaultConnection As String, _ ByVal ParentWindow As Long, _ ByVal DefaultAuthType As MFAuthType, _ ByVal ReturnNULLIfCancelledByUser As Boolean _ ) As Vault | 
| Value | Description | 
|---|---|
| MFAuthTypeLoggedOnWindowsUser | Windows authentication with current user credentials. | 
| MFAuthTypeSpecificMFilesUser | M-Files authentication, user needs to specify the credentials. | 
| MFAuthTypeSpecificWindowsUser | Windows authentication, user needs to specify the credentials. | 
| MFAuthTypeUnknown | Unspecified authentication method. |