Provides methods for logon More...
Public Member Functions | |
string | GetWindowsUser () |
Retrieves the Windows user name of the currently logged in user. More... | |
Session2 | LogOnWithWindowsAuthentication (short logOnProtocol, bool unconditionalLogOn) |
Logs in the current Windows user using Windows authentication. More... | |
Provides methods for logon
string GetWindowsUser | ( | ) |
Retrieves the Windows user name of the currently logged in user.
Session2 LogOnWithWindowsAuthentication | ( | short | logOnProtocol, |
bool | unconditionalLogOn | ||
) |
Logs in the current Windows user using Windows authentication.
logOnProtocol | Specifies the type of Logon Protocol to use. |
unconditionalLogOn | Indicates that a new session should be created if the user is already logged on |
Name | Type | Comment |
---|---|---|
ReserveLicenseUsed | Boolean | Indicates whether the user uses a reserve license |
SessionId | String | The user's session ID |
ResourceId | String | The user's user ID |
DisplayName | String | The user's name |
isValid | Boolean | Will be true if the session is valid |
LogonState | LogonState | The logon state information |
true
then UnconditionalLogOn has no effect. If the user is already logged in then the existing session will be returned otherwise a new one will be created.false
and UnconditionalLogOn is also false
then an exception will be raised if the user is already logged on. If they were not logged on then a new session will created. false
and UnconditionalLogOn is true
then: