Share via


DeviceState Struct

Definition

The edge device state.

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

Fields

Connected

The edge device state is in connected state.

Disconnected

The edge device state is in disconnected state.

Draining

The edge device state is in draining state.

InMaintenance

The edge device state is in maintenance state.

NotSpecified

The edge device state is not specified.

Processing

The edge device state is in processing state.

Repairing

The edge device state is in repairing state.

Resuming

The edge device state is in resuming state.

Methods

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

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

Equals(DeviceState)

Compares values of enum type DeviceState

Equals(Object)

Compares values of enum type DeviceState (override for Object)

GetHashCode()

Returns hashCode for enum DeviceState

ToString()

Returns string representation for DeviceState

Operators

Equality(DeviceState, DeviceState)

Overriding == operator for enum DeviceState

Implicit(DeviceState to String)

Implicit operator to convert DeviceState to string

Implicit(String to DeviceState)

Implicit operator to convert string to DeviceState

Inequality(DeviceState, DeviceState)

Overriding != operator for enum DeviceState

Applies to