Share via


TelemetryPropertyBags.Concurrent<TValue> Class

Definition

Concurrent property bag

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)

Type Parameters

TValue
Inheritance
TelemetryPropertyBags.Concurrent<TValue>
Derived
Implements

Constructors

TelemetryPropertyBags.Concurrent<TValue>()

Initializer of the concurrent bag

Extension Methods

HasProperties<TValue>(ITelemetryPropertyBag<TValue>)

Check, whether we have properties

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

Add one dictionary content to the another dictionary

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

Gets a value by the given key.

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

Remove key from the ConcurrentDictionary

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to