Partilhar via


BicepDictionary<T> Class

Definition

Represents a dictionary with string keys and bicep values.

public class BicepDictionary<T> : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue<T>>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.IBicepValue>>, System.Collections.Generic.IDictionary<string,Azure.Provisioning.BicepValue<T>>, System.Collections.Generic.IDictionary<string,Azure.Provisioning.IBicepValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue<T>>>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.IBicepValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue<T>>>, System.Collections.Generic.IReadOnlyDictionary<string,Azure.Provisioning.BicepValue<T>>
public class BicepDictionary<T> : Azure.Provisioning.BicepValue, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue<T>>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue>>, System.Collections.Generic.IDictionary<string,Azure.Provisioning.BicepValue<T>>, System.Collections.Generic.IDictionary<string,Azure.Provisioning.BicepValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue<T>>>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Azure.Provisioning.BicepValue>>
type BicepDictionary<'T> = class
    inherit BicepValue
    interface IDictionary<string, BicepValue<'T>>
    interface ICollection<KeyValuePair<string, BicepValue<'T>>>
    interface seq<KeyValuePair<string, BicepValue<'T>>>
    interface IEnumerable
    interface IDictionary<string, IBicepValue>
    interface ICollection<KeyValuePair<string, IBicepValue>>
    interface seq<KeyValuePair<string, IBicepValue>>
    interface IReadOnlyDictionary<string, BicepValue<'T>>
    interface IReadOnlyCollection<KeyValuePair<string, BicepValue<'T>>>
type BicepDictionary<'T> = class
    inherit BicepValue
    interface IDictionary<string, BicepValue<'T>>
    interface ICollection<KeyValuePair<string, BicepValue<'T>>>
    interface seq<KeyValuePair<string, BicepValue<'T>>>
    interface IEnumerable
    interface IDictionary<string, BicepValue>
    interface ICollection<KeyValuePair<string, BicepValue>>
    interface seq<KeyValuePair<string, BicepValue>>
Public Class BicepDictionary(Of T)
Inherits BicepValue
Implements ICollection(Of KeyValuePair(Of String, BicepValue(Of T))), ICollection(Of KeyValuePair(Of String, IBicepValue)), IDictionary(Of String, BicepValue(Of T)), IDictionary(Of String, IBicepValue), IEnumerable(Of KeyValuePair(Of String, BicepValue(Of T))), IEnumerable(Of KeyValuePair(Of String, IBicepValue)), IReadOnlyCollection(Of KeyValuePair(Of String, BicepValue(Of T))), IReadOnlyDictionary(Of String, BicepValue(Of T))
Public Class BicepDictionary(Of T)
Inherits BicepValue
Implements ICollection(Of KeyValuePair(Of String, BicepValue(Of T))), ICollection(Of KeyValuePair(Of String, BicepValue)), IDictionary(Of String, BicepValue(Of T)), IDictionary(Of String, BicepValue), IEnumerable(Of KeyValuePair(Of String, BicepValue(Of T))), IEnumerable(Of KeyValuePair(Of String, BicepValue))

Type Parameters

T

The type of element represented by the values.

Inheritance
BicepDictionary<T>
Implements

Constructors

BicepDictionary<T>()

Creates a new BicepDictionary.

BicepDictionary<T>(IDictionary<String,BicepValue<T>>)

Creates a new BicepDictionary with literal values.

Properties

Count
Expression (Inherited from BicepValue)
IsEmpty
IsReadOnly
Item[String]

Gets or sets a value in a BicepDictionary.

Keys
Kind

Gets the kind of this value (a literal value, an expression, or it's unset).

(Inherited from BicepValue)
Values

Methods

Add(KeyValuePair<String,BicepValue<T>>)
Add(String, BicepValue<T>)
Clear()
Compile()

Compile this value to a Bicep expression.

(Inherited from BicepValue)
Contains(KeyValuePair<String,BicepValue<T>>)
ContainsKey(String)
CopyTo(KeyValuePair<String,BicepValue<T>>[], Int32)
GetEnumerator()
Remove(KeyValuePair<String,BicepValue<T>>)
Remove(String)
ToString()

Returns a string that represents the current object.

(Inherited from BicepValue)
TryGetValue(String, BicepValue<T>)

Operators

Implicit(ProvisioningVariable to BicepDictionary<T>)

Explicit Interface Implementations

IBicepValue.Assign(IBicepValue)

Assign a value to this property.

(Inherited from BicepValue)
IBicepValue.Expression

Gets the expression for this value if it's not a literal.

(Inherited from BicepValue)
IBicepValue.IsOutput

Tracks whether this is an output only property.

(Inherited from BicepValue)
IBicepValue.IsRequired

Tracks whether this property is required.

(Inherited from BicepValue)
IBicepValue.IsSecure

Tracks whether this contains a secure value.

(Inherited from BicepValue)
IBicepValue.Kind

Gets the kind of this value (a literal value, an expression, or it's unset).

(Inherited from BicepValue)
IBicepValue.LiteralValue

Get the value of this expression, if it's literal.

(Inherited from BicepValue)
IBicepValue.Self

Gets information about where this value was defined.

(Inherited from BicepValue)
IBicepValue.SetReadOnly()

Make this value readonly.

(Inherited from BicepValue)
IBicepValue.Source

Gets information about where this value was assigned from.

(Inherited from BicepValue)
ICollection<KeyValuePair<String,BicepValue>>.Add(KeyValuePair<String,BicepValue>)
ICollection<KeyValuePair<String,BicepValue>>.Contains(KeyValuePair<String,BicepValue>)
ICollection<KeyValuePair<String,BicepValue>>.CopyTo(KeyValuePair<String,BicepValue>[], Int32)
ICollection<KeyValuePair<String,BicepValue>>.Remove(KeyValuePair<String,BicepValue>)
ICollection<KeyValuePair<String,IBicepValue>>.Add(KeyValuePair<String,IBicepValue>)
ICollection<KeyValuePair<String,IBicepValue>>.Contains(KeyValuePair<String,IBicepValue>)
ICollection<KeyValuePair<String,IBicepValue>>.CopyTo(KeyValuePair<String,IBicepValue>[], Int32)
ICollection<KeyValuePair<String,IBicepValue>>.Remove(KeyValuePair<String,IBicepValue>)
IDictionary<String,BicepValue>.Add(String, BicepValue)
IDictionary<String,BicepValue>.Item[String]
IDictionary<String,BicepValue>.TryGetValue(String, BicepValue)
IDictionary<String,BicepValue>.Values
IDictionary<String,IBicepValue>.Add(String, IBicepValue)
IDictionary<String,IBicepValue>.Item[String]
IDictionary<String,IBicepValue>.TryGetValue(String, IBicepValue)
IDictionary<String,IBicepValue>.Values
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<KeyValuePair<String,BicepValue>>.GetEnumerator()
IEnumerable<KeyValuePair<String,IBicepValue>>.GetEnumerator()
IReadOnlyDictionary<String,BicepValue<T>>.Keys
IReadOnlyDictionary<String,BicepValue<T>>.Values

Extension Methods

GetValueOrAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, Func<TKey,TValue>)

Gets or adds the value associated with specified key.

GetValueOrDefault<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

Gets the value associated with specified key.

AsFormattedString<TKey,TValue>(IDictionary<TKey,TValue>)

Applies to