Share via


Role Struct

Definition

Replica Role in availability group.

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

Fields

Primary
Secondary

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 Role (override for Object)

Equals(Role)

Compares values of enum type Role

GetHashCode()

Returns hashCode for enum Role

ToString()

Returns string representation for Role

Operators

Equality(Role, Role)

Overriding == operator for enum Role

Implicit(Role to String)

Implicit operator to convert Role to string

Implicit(String to Role)

Implicit operator to convert string to Role

Inequality(Role, Role)

Overriding != operator for enum Role

Applies to