Поделиться через


TelemetryPropertyBags.Concurrent<TValue> Класс

Определение

Контейнер свойств concurrent

public: generic <typename TValue>
ref class TelemetryPropertyBags::Concurrent : System::Collections::Concurrent::ConcurrentDictionary<System::String ^, TValue>, Microsoft::VisualStudio::Telemetry::ITelemetryPropertyBag<TValue>, 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>>
public class TelemetryPropertyBags.Concurrent<TValue> : System.Collections.Concurrent.ConcurrentDictionary<string,TValue>, Microsoft.VisualStudio.Telemetry.ITelemetryPropertyBag<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>>
type TelemetryPropertyBags.Concurrent<'Value> = class
    inherit ConcurrentDictionary<string, 'Value>
    interface ITelemetryPropertyBag<'Value>
    interface IDictionary<string, 'Value>
    interface ICollection<KeyValuePair<string, 'Value>>
    interface seq<KeyValuePair<string, 'Value>>
    interface IEnumerable
Public Class TelemetryPropertyBags.Concurrent(Of TValue)
Inherits ConcurrentDictionary(Of String, TValue)
Implements ICollection(Of KeyValuePair(Of String, TValue)), IDictionary(Of String, TValue), IEnumerable(Of KeyValuePair(Of String, TValue)), ITelemetryPropertyBag(Of TValue)

Параметры типа

TValue
Наследование
TelemetryPropertyBags.Concurrent<TValue>
Производный
Реализации

Конструкторы

TelemetryPropertyBags.Concurrent<TValue>()

Инициализатор параллельного контейнера

Методы расширения

HasProperties<TValue>(ITelemetryPropertyBag<TValue>)

Проверьте, есть ли у нас свойства

AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean)

Добавление одного содержимого словаря в другой словарь

GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK)

Возвращает значение по заданному ключу.

Remove<TK,TV>(ConcurrentDictionary<TK,TV>, TK)

Удаление ключа из ConcurrentDictionary

EmptyIfNull<T>(IEnumerable<T>)

Возвращать это перечисление в случае, если оно не равно NULL. Если значение равно NULL, возвращается пустое перечисление.

Применяется к