IAnnotationDictionary Interface
Represents a dictionary of custom data objects that you can associate with certain objects in the SharePoint tools object model.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Public Interface IAnnotationDictionary _
Inherits IDictionary(Of Object, Object), ICollection(Of KeyValuePair(Of Object, Object)), _
IEnumerable(Of KeyValuePair(Of Object, Object)), IEnumerable
public interface IAnnotationDictionary : IDictionary<Object, Object>,
ICollection<KeyValuePair<Object, Object>>, IEnumerable<KeyValuePair<Object, Object>>,
IEnumerable
The IAnnotationDictionary type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollection. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
IsReadOnly | Gets a value indicating whether the ICollection is read-only. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
Item | Gets or sets the element with the specified key. (Inherited from IDictionary<Object, Object>.) | |
Keys | Gets an ICollection containing the keys of the IDictionary. (Inherited from IDictionary<Object, Object>.) | |
Values | Gets an ICollection containing the values in the IDictionary. (Inherited from IDictionary<Object, Object>.) |
Top
Methods
Name | Description | |
---|---|---|
Add(UTP) | Adds an item to the ICollection. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
Add(UTP, UTP) | Adds an element with the provided key and value to the IDictionary. (Inherited from IDictionary<Object, Object>.) | |
Add<T>(T) | Adds an object to the dictionary by using the Type of the object for the key. | |
Clear | Removes all items from the ICollection. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
Contains | Determines whether the ICollection contains a specific value. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
ContainsKey | Determines whether the IDictionary contains an element with the specified key. (Inherited from IDictionary<Object, Object>.) | |
CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<KeyValuePair<Object, Object>>.) | |
GetValue<T>() | Gets the object that has the specified reference type. | |
GetValue<T>(Object) | Gets the object that has the specified reference type and is associated with the specified key. | |
Remove(UTP) | Removes the element with the specified key from the IDictionary. (Inherited from IDictionary<Object, Object>.) | |
Remove(UTP) | Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<KeyValuePair<Object, Object>>.) | |
Remove<T>() | Removes an object with the specified Type from the dictionary. | |
TryGetValue(UTP, UTP) | Gets the value associated with the specified key. (Inherited from IDictionary<Object, Object>.) | |
TryGetValue<T>(T%) | Gets the object that has the specified type. | |
TryGetValue<T>(Object, T%) | Gets the object that has the specified type and is associated with the specified key. |
Top
Remarks
You can add custom data to instances of types in the SharePoint tools object model that implement the IAnnotatedObject interface. These types have an Annotations property that returns an IAnnotationDictionary object. For more information, see Associating Custom Data with SharePoint Tools Extensions.