OptionalProperty.ToDictionary 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ToDictionary<TKey,TValue>(OptionalProperty<IDictionary<TKey,TValue>>) | |
| ToDictionary<TKey,TValue>(OptionalProperty<IReadOnlyDictionary<TKey,TValue>>) |
ToDictionary<TKey,TValue>(OptionalProperty<IDictionary<TKey,TValue>>)
public:
generic <typename TKey, typename TValue>
static System::Collections::Generic::IDictionary<TKey, TValue> ^ ToDictionary(System::Net::ClientModel::Internal::OptionalProperty<System::Collections::Generic::IDictionary<TKey, TValue> ^> optional);
public static System.Collections.Generic.IDictionary<TKey,TValue> ToDictionary<TKey,TValue>(System.Net.ClientModel.Internal.OptionalProperty<System.Collections.Generic.IDictionary<TKey,TValue>> optional);
static member ToDictionary : System.Net.ClientModel.Internal.OptionalProperty<System.Collections.Generic.IDictionary<'Key, 'Value>> -> System.Collections.Generic.IDictionary<'Key, 'Value>
Public Shared Function ToDictionary(Of TKey, TValue) (optional As OptionalProperty(Of IDictionary(Of TKey, TValue))) As IDictionary(Of TKey, TValue)
类型参数
- TKey
- TValue
参数
- optional
- OptionalProperty<IDictionary<TKey,TValue>>
返回
适用于
ToDictionary<TKey,TValue>(OptionalProperty<IReadOnlyDictionary<TKey,TValue>>)
public:
generic <typename TKey, typename TValue>
static System::Collections::Generic::IReadOnlyDictionary<TKey, TValue> ^ ToDictionary(System::Net::ClientModel::Internal::OptionalProperty<System::Collections::Generic::IReadOnlyDictionary<TKey, TValue> ^> optional);
public static System.Collections.Generic.IReadOnlyDictionary<TKey,TValue> ToDictionary<TKey,TValue>(System.Net.ClientModel.Internal.OptionalProperty<System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>> optional);
static member ToDictionary : System.Net.ClientModel.Internal.OptionalProperty<System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value>> -> System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value>
Public Shared Function ToDictionary(Of TKey, TValue) (optional As OptionalProperty(Of IReadOnlyDictionary(Of TKey, TValue))) As IReadOnlyDictionary(Of TKey, TValue)
类型参数
- TKey
- TValue
参数
- optional
- OptionalProperty<IReadOnlyDictionary<TKey,TValue>>