ServiceCollection<T> Class
Represents a collection of services.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System.Collections.Generic.Dictionary<TKey, TValue>
Microsoft.VisualStudio.Shell.ServiceCollection<T>
| Name | Description | |
|---|---|---|
![]() | ServiceCollection<T>() | Initializes a new instance of T:Microsoft.VisualStudio.Shell.ServiceCollection`1. |
| Name | Description | |
|---|---|---|
![]() | Comparer | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Count | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Item[TKey] | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Keys | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Values | (Inherited from Dictionary<TKey, TValue>.) |
| Name | Description | |
|---|---|---|
![]() | Add(TKey, TValue) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Clear() | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsKey(TKey) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsValue(TValue) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetEnumerator() | (Inherited from Dictionary<TKey, TValue>.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnDeserialization(Object) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Remove(TKey) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetValue(TKey, TValue) | (Inherited from Dictionary<TKey, TValue>.) |
Use this collection to store the mapping from the type of a service to the object that provides it in a way that is aware of embedded types. The comparer for this collection performs a comparison of the GUID properties of the Type key instead of doing a reference comparison, which will fail in type-embedding scenarios.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




