你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContainerGroupRestartPolicy Struct

Definition

Restart policy for all containers within the container group.

  • Always Always restart
  • OnFailure Restart on failure
  • Never Never restart
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicyTypeConverter))]
public struct ContainerGroupRestartPolicy : IEquatable<Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy>, System.Management.Automation.IArgumentCompleter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicyTypeConverter))>]
type ContainerGroupRestartPolicy = struct
    interface IArgumentCompleter
Public Structure ContainerGroupRestartPolicy
Implements IArgumentCompleter, IEquatable(Of ContainerGroupRestartPolicy)
Inheritance
ContainerGroupRestartPolicy
Attributes
Implements

Fields

Always
Never
OnFailure

Methods

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

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

Equals(ContainerGroupRestartPolicy)

Compares values of enum type ContainerGroupRestartPolicy

Equals(Object)

Compares values of enum type ContainerGroupRestartPolicy (override for Object)

GetHashCode()

Returns hashCode for enum ContainerGroupRestartPolicy

ToString()

Returns string representation for ContainerGroupRestartPolicy

Operators

Equality(ContainerGroupRestartPolicy, ContainerGroupRestartPolicy)

Overriding == operator for enum ContainerGroupRestartPolicy

Implicit(ContainerGroupRestartPolicy to String)

Implicit operator to convert ContainerGroupRestartPolicy to string

Implicit(String to ContainerGroupRestartPolicy)

Implicit operator to convert string to ContainerGroupRestartPolicy

Inequality(ContainerGroupRestartPolicy, ContainerGroupRestartPolicy)

Overriding != operator for enum ContainerGroupRestartPolicy

Applies to