AdditionalPropertiesDictionary<TValue> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用作 Microsoft.Extensions.AI 对象的 AdditionalProperties 字典的字典。
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
构造函数
属性
| 名称 | 说明 |
|---|---|
| Count |
获取包含在 . 中的 ICollection<T>元素数。 |
| Item[String] |
获取或设置具有指定键的元素。 |
| Keys |
获取一个ICollection<T>包含 . 的键。IDictionary<TKey,TValue> |
| Values |
获取一个 ICollection<T> 包含值中的 IDictionary<TKey,TValue>值。 |
方法
| 名称 | 说明 |
|---|---|
| Add(String, TValue) |
将具有提供的键和值的元素添加到 .IDictionary<TKey,TValue> |
| Clear() |
从 ICollection<T>.. 中删除所有项 |
| Clone() |
创建属性字典的浅表克隆。 |
| ContainsKey(String) |
确定该元素是否 IDictionary<TKey,TValue> 包含具有指定键的元素。 |
| GetEnumerator() |
返回循环访问的 AdditionalPropertiesDictionary<TValue>枚举数。 |
| Remove(String) |
从 中移除具有指定键的 IDictionary<TKey,TValue>元素。 |
| TryAdd(String, TValue) |
尝试将指定的键和值添加到字典。 |
| TryGetValue(String, TValue) |
获取与指定键关联的值。 |
| TryGetValue<T>(String, T) |
尝试从字典中提取类型化值。 |
显式接口实现
| 名称 | 说明 |
|---|---|
| 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 |
获取一个可枚举集合,该集合包含只读字典中的值。 |