AdditionalPropertiesDictionary Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a dictionary used as the AdditionalProperties dictionary on Microsoft.Extensions.AI objects.
generic
public ref class AdditionalPropertiesDictionary : System::Collections::Generic::ICollection>, System::Collections::Generic::IDictionary, System::Collections::Generic::IEnumerable>, System::Collections::Generic::IReadOnlyCollection>, System::Collections::Generic::IReadOnlyDictionary
public class AdditionalPropertiesDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary
type AdditionalPropertiesDictionary<'Value> = class
interface IDictionary
interface ICollection>
interface seq>
interface IEnumerable
interface IReadOnlyDictionary
interface IReadOnlyCollection>
Public Class AdditionalPropertiesDictionary(Of TValue)
Implements ICollection(Of KeyValuePair(Of String, TValue)), IDictionary(Of String, TValue), IEnumerable(Of KeyValuePair(Of String, TValue)), IReadOnlyCollection(Of KeyValuePair(Of String, TValue)), IReadOnlyDictionary(Of String, TValue)
Type Parameters
- TValue
The type of the values in the dictionary.
- Inheritance
-
AdditionalPropertiesDictionary
- Derived
- Implements
-
ICollection<KeyValuePair<String,TValue>> ICollection<KeyValuePair
> IDictionary<String,TValue> IEnumerable<KeyValuePair<String,TValue>> IEnumerable<KeyValuePair> IEnumerableIReadOnlyCollection<KeyValuePair<String,TValue>> IReadOnlyCollection<KeyValuePair > IReadOnlyDictionary<String,TValue> IEnumerable
Constructors
| Name | Description |
|---|---|
|
AdditionalPropertiesDictionary |
Initializes a new instance of the AdditionalPropertiesDictionary |
|
AdditionalPropertiesDictionary |
Initializes a new instance of the AdditionalPropertiesDictionary |
|
AdditionalPropertiesDictionary |
Initializes a new instance of the AdditionalPropertiesDictionary |
Properties
| Name | Description |
|---|---|
| Count |
Gets the number of elements contained in the ICollection |
| Item[String] |
Gets or sets the element with the specified key. |
| Keys |
Gets an ICollection |
| Values |
Gets an ICollection |
Methods
| Name | Description |
|---|---|
| Add(String, TValue) |
Adds an element with the provided key and value to the IDictionary |
| Clear() |
Removes all items from the ICollection |
| Clone() |
Creates a shallow clone of the properties dictionary. |
| ContainsKey(String) |
Determines whether the IDictionary |
| GetEnumerator() |
Returns an enumerator that iterates through the AdditionalPropertiesDictionary |
| Remove(String) |
Removes the element with the specified key from the IDictionary |
| TryAdd(String, TValue) |
Attempts to add the specified key and value to the dictionary. |
| TryGetValue(String, TValue) |
Gets the value associated with the specified key. |
|
TryGetValue |
Attempts to extract a typed value from the dictionary. |
Explicit Interface Implementations
| Name | Description |
|---|---|
|
ICollection |
Adds an item to the ICollection |
|
ICollection |
Determines whether the ICollection |
|
ICollection |
Copies the elements of the ICollection |
|
ICollection |
Gets a value indicating whether the ICollection |
|
ICollection |
Removes the first occurrence of a specific object from the ICollection |
|
IDictionary |
Gets the value associated with the specified key. |
| IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |
|
IEnumerable |
Returns an enumerator that iterates through the collection. |
|
IReadOnlyDictionary |
Gets an enumerable collection that contains the keys in the read-only dictionary. |
|
IReadOnlyDictionary |
Gets the value that is associated with the specified key. |
|
IReadOnlyDictionary |
Gets an enumerable collection that contains the values in the read-only dictionary. |
Extension Methods
| Name | Description |
|---|---|
|
ToAsyncEnumerable |
Converts an IEnumerable |
|
ToFrozenDictionary |
Creates a FrozenDictionary |
|
ToFrozenDictionary |
Creates a FrozenDictionary |
|
ToFrozenSet |
Creates a FrozenSet |
|
ToImmutableArray |
Creates an immutable array from the specified collection. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents. |
|
ToImmutableDictionary |
Constructs an immutable dictionary based on some transformation of a sequence. |
|
ToImmutableDictionary |
Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys. |
|
ToImmutableHashSet |
Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type. |
|
ToImmutableHashSet |
Enumerates a sequence and produces an immutable hash set of its contents. |
|
ToImmutableList |
Enumerates a sequence and produces an immutable list of its contents. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents. |
|
ToImmutableSortedSet |
Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. |
|
ToImmutableSortedSet |
Enumerates a sequence and produces an immutable sorted set of its contents. |