OptionalProperty.ToDictionary 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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>>