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.
public ref class AdditionalPropertiesDictionary sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^>
public sealed class AdditionalPropertiesDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IReadOnlyDictionary<string,object>
type AdditionalPropertiesDictionary = class
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
interface IReadOnlyDictionary<string, obj>
interface IReadOnlyCollection<KeyValuePair<string, obj>>
Public NotInheritable Class AdditionalPropertiesDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IReadOnlyCollection(Of KeyValuePair(Of String, Object)), IReadOnlyDictionary(Of String, Object)
- Inheritance
-
AdditionalPropertiesDictionary
- Implements
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IReadOnlyCollection<KeyValuePair<String,Object>> IReadOnlyCollection<KeyValuePair<TKey,TValue>> IReadOnlyDictionary<String,Object> IEnumerable
Constructors
AdditionalPropertiesDictionary() |
Initializes a new instance of the AdditionalPropertiesDictionary class. |
AdditionalPropertiesDictionary(IDictionary<String,Object>) |
Initializes a new instance of the AdditionalPropertiesDictionary class. |
AdditionalPropertiesDictionary(IEnumerable<KeyValuePair<String,Object>>) |
Initializes a new instance of the AdditionalPropertiesDictionary class. |
Properties
Count |
Gets the number of elements contained in the ICollection<T>. |
Item[String] |
Gets or sets the element with the specified key. |
Keys |
Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>. |
Values |
Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>. |
Methods
Add(String, Object) |
Adds an element with the provided key and value to the IDictionary<TKey,TValue>. |
Clear() |
Removes all items from the ICollection<T>. |
Clone() |
Creates a shallow clone of the properties dictionary. |
ContainsKey(String) |
Determines whether the IDictionary<TKey,TValue> contains an element with the specified key. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(String) |
Removes the element with the specified key from the IDictionary<TKey,TValue>. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryGetValue(String, Object) | |
TryGetValue<T>(String, T) |
Attempts to extract a typed value from the dictionary. |