AdditionalPropertiesDictionary<TValue> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一個用於 AdditionalProperties 字典的字典,用於 Microsoft.Extensions.AI 物件。
generic <typename TValue>
public ref class AdditionalPropertiesDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IDictionary<System::String ^, TValue>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, TValue>
public class AdditionalPropertiesDictionary<TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IDictionary<string,TValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,TValue>>, System.Collections.Generic.IReadOnlyDictionary<string,TValue>
type AdditionalPropertiesDictionary<'Value> = class
interface IDictionary<string, 'Value>
interface ICollection<KeyValuePair<string, 'Value>>
interface seq<KeyValuePair<string, 'Value>>
interface IEnumerable
interface IReadOnlyDictionary<string, 'Value>
interface IReadOnlyCollection<KeyValuePair<string, 'Value>>
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)
類型參數
- TValue
字典中值的型別。
- 繼承
-
AdditionalPropertiesDictionary<TValue>
- 衍生
- 實作
-
ICollection<KeyValuePair<String,TValue>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,TValue> IEnumerable<KeyValuePair<String,TValue>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IReadOnlyCollection<KeyValuePair<String,TValue>> IReadOnlyCollection<KeyValuePair<TKey,TValue>> IReadOnlyDictionary<String,TValue> IEnumerable
建構函式
屬性
| 名稱 | Description |
|---|---|
| Count |
得到包含於 的 ICollection<T>元素數量。 |
| Item[String] |
取得或設定具有指定索引鍵的專案。 |
| Keys |
得到包含 ICollection<T> 的 IDictionary<TKey,TValue>鍵。 |
| Values |
得到 和 ICollection<T> 包含 的值。IDictionary<TKey,TValue> |
方法
| 名稱 | Description |
|---|---|
| Add(String, TValue) |
在 中加入一個包含所提供鍵值與值的元素。IDictionary<TKey,TValue> |
| Clear() |
移除所有項目。ICollection<T> |
| Clone() |
建立一個 properties 字典的淺克隆。 |
| ContainsKey(String) |
判斷是否 IDictionary<TKey,TValue> 包含具有指定鍵的元素。 |
| GetEnumerator() |
回傳一個遍歷 的 AdditionalPropertiesDictionary<TValue>枚舉子。 |
| Remove(String) |
從 中移除具有指定鍵的 IDictionary<TKey,TValue>元素。 |
| TryAdd(String, TValue) |
嘗試將指定的索引鍵和值新增至字典。 |
| TryGetValue(String, TValue) |
取得與指定索引鍵相關聯的值。 |
| TryGetValue<T>(String, T) |
嘗試從字典中擷取一個已打型的值。 |
明確介面實作
| 名稱 | Description |
|---|---|
| ICollection<KeyValuePair<String,TValue>>.Add(KeyValuePair<String,TValue>) |
將一個項目加入 ICollection<T>。 |
| ICollection<KeyValuePair<String,TValue>>.Contains(KeyValuePair<String,TValue>) |
判斷是否 ICollection<T> 包含特定值。 |
| ICollection<KeyValuePair<String,TValue>>.CopyTo(KeyValuePair<String,TValue>[], Int32) |
從特定ICollection<T>索引開始,將 的Array元素複製到 Array。 |
| ICollection<KeyValuePair<String,TValue>>.IsReadOnly |
取得值,指出 ICollection<T> 是否為唯讀。 |
| ICollection<KeyValuePair<String,TValue>>.Remove(KeyValuePair<String,TValue>) |
從 ICollection<T>移除第一個出現的特定物件。 |
| IDictionary<String,TValue>.TryGetValue(String, TValue) |
取得與指定索引鍵相關聯的值。 |
| IEnumerable.GetEnumerator() |
傳回逐一查看集合的列舉值。 |
| IEnumerable<KeyValuePair<String,TValue>>.GetEnumerator() |
傳回逐一查看集合的列舉值。 |
| IReadOnlyDictionary<String,TValue>.Keys |
取得可列舉集合,其中包含唯讀字典中的索引鍵。 |
| IReadOnlyDictionary<String,TValue>.TryGetValue(String, TValue) |
取得與指定索引鍵相關聯的值。 |
| IReadOnlyDictionary<String,TValue>.Values |
取得可列舉集合,其中包含唯讀字典中的值。 |