M-Files API 23.11.13135.0
ConnectAdministrativeInteractiveEx Method
MFilesServerApplication Object : ConnectAdministrativeInteractiveEx Method
The connection details.
The display name of the server to connect to. Depending on the authentication type, may appear in the login user interface.
The parent window for any number of possible dialogs.
If this is set to "true" and the user cancels the connection attempt, "None" is returned. Otherwise, an error code is returned.
Indicates an authentication type as one value of the MFAuthType enumeration. The default value indicates the current logged on Windows user (MFAuthTypeLoggedOnWindowsUser).
The service principal name (SPN).
Description
Connects to the specified server in administrative mode interactively. Allows connection without a login account if the user has administrative rights on the server computer.
Syntax
Visual Basic
Public Function ConnectAdministrativeInteractiveEx( _
   ByVal ConnectionData As ConnectionData, _
   ByVal ServerDisplayName As String, _
   ByVal ParentWindow As Long, _
   ByVal ReturnNoneIfCancelledByUser As Boolean, _
   Optional ByVal DefaultAuthType As MFAuthType = MFAuthTypeLoggedOnWindowsUser, _
   Optional ByVal SPN As Variant _
) As MFServerConnection
Parameters
ConnectionData
The connection details.
ServerDisplayName
The display name of the server to connect to. Depending on the authentication type, may appear in the login user interface.
ParentWindow
The parent window for any number of possible dialogs.
ReturnNoneIfCancelledByUser
If this is set to "true" and the user cancels the connection attempt, "None" is returned. Otherwise, an error code is returned.
DefaultAuthType
ValueDescription
MFAuthTypeLoggedOnWindowsUserWindows authentication with current user credentials.
MFAuthTypeSpecificMFilesUserM-Files authentication, user needs to specify the credentials.
MFAuthTypeSpecificWindowsUserWindows authentication, user needs to specify the credentials.
MFAuthTypeUnknownUnspecified authentication method.
Indicates an authentication type as one value of the MFAuthType enumeration. The default value indicates the current logged on Windows user (MFAuthTypeLoggedOnWindowsUser).
SPN
The service principal name (SPN).
Remarks
Requires M-Files 18.10.6895.1 or later.
See Also

MFilesServerApplication Object  | MFilesServerApplication Members