Share via


OperationState Struct

Definition

Enum describing allowed operation states.

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

Fields

Name Description
Canceled

The operation has been canceled by the user.

Failed

The operation has failed.

NotStarted

The operation has not started.

Running

The operation is in progress.

Succeeded

The operation has completed successfully.

Methods

Name Description
CompleteArgument(String, String, String, CommandAst, IDictionary)

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

Equals(Object)

Compares values of enum type OperationState (override for Object)

Equals(OperationState)

Compares values of enum type OperationState

GetHashCode()

Returns hashCode for enum OperationState

ToString()

Returns string representation for OperationState

Operators

Name Description
Equality(OperationState, OperationState)

Overriding == operator for enum OperationState

Implicit(OperationState to String)

Implicit operator to convert OperationState to string

Implicit(String to OperationState)

Implicit operator to convert string to OperationState

Inequality(OperationState, OperationState)

Overriding != operator for enum OperationState

Applies to