Share via


LoginMode Class

public final class LoginMode
extends ExpandableStringEnum<LoginMode>

LoginMode enums.

Field Summary

Modifier and Type Field and Description
static final LoginMode BATCH

The LOGON32_LOGON_BATCH Win32 login mode.

static final LoginMode INTERACTIVE

The LOGON32_LOGON_INTERACTIVE Win32 login mode.

Constructor Summary

Constructor Description
LoginMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LoginMode value.

Method Summary

Modifier and Type Method and Description
static LoginMode fromString(String name)

Creates or finds a LoginMode from its string representation.

static Collection<LoginMode> values()

Gets known LoginMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BATCH

public static final LoginMode BATCH

The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running parallel processes.

INTERACTIVE

public static final LoginMode INTERACTIVE

The LOGON32_LOGON_INTERACTIVE Win32 login mode. UAC is enabled on Windows VirtualMachineConfiguration Pools. If this option is used with an elevated user identity in a Windows VirtualMachineConfiguration Pool, the user session will not be elevated unless the application executed by the Task command line is configured to always require administrative privilege or to always require maximum privilege.

Constructor Details

LoginMode

@Deprecated
public LoginMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LoginMode value.

Method Details

fromString

public static LoginMode fromString(String name)

Creates or finds a LoginMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LoginMode.

values

public static Collection<LoginMode> values()

Gets known LoginMode values.

Returns:

known LoginMode values.

Applies to