你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ShutdownOnIdleMode Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |