Share via


ShutdownOnIdleMode Struct

Definition

Defines whether to shut down VM on idle and the criteria for idle detection.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleModeTypeConverter))]
public struct ShutdownOnIdleMode : IEquatable<Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleMode>, System.Management.Automation.IArgumentCompleter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.LabServices.Support.ShutdownOnIdleModeTypeConverter))>]
type ShutdownOnIdleMode = struct
    interface IArgumentCompleter
Public Structure ShutdownOnIdleMode
Implements IArgumentCompleter, IEquatable(Of ShutdownOnIdleMode)
Inheritance
ShutdownOnIdleMode
Attributes
Implements

Fields

LowUsage

The VM will be considered as idle when user is absent and the resource (CPU and disk) consumption is low.

None

The VM won't be shut down when it is idle.

UserAbsence

The VM will be considered as idle when there is no keyboard or mouse input.

Methods

CompleteArgument(String, String, String, CommandAst, IDictionary)

Implementations of this function are called by PowerShell to complete arguments.

Equals(Object)

Compares values of enum type ShutdownOnIdleMode (override for Object)

Equals(ShutdownOnIdleMode)

Compares values of enum type ShutdownOnIdleMode

GetHashCode()

Returns hashCode for enum ShutdownOnIdleMode

ToString()

Returns string representation for ShutdownOnIdleMode

Operators

Equality(ShutdownOnIdleMode, ShutdownOnIdleMode)

Overriding == operator for enum ShutdownOnIdleMode

Implicit(ShutdownOnIdleMode to String)

Implicit operator to convert ShutdownOnIdleMode to string

Implicit(String to ShutdownOnIdleMode)

Implicit operator to convert string to ShutdownOnIdleMode

Inequality(ShutdownOnIdleMode, ShutdownOnIdleMode)

Overriding != operator for enum ShutdownOnIdleMode

Applies to