IAnnotationDictionary Interface

Definition

Represents a dictionary of custom data objects that you can associate with certain objects in the SharePoint tools object model.

public interface class IAnnotationDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Object ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Object ^, System::Object ^>>
public interface IAnnotationDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<object,object>>, System.Collections.Generic.IDictionary<object,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,object>>
type IAnnotationDictionary = interface
    interface IDictionary<obj, obj>
    interface ICollection<KeyValuePair<obj, obj>>
    interface seq<KeyValuePair<obj, obj>>
    interface IEnumerable
Public Interface IAnnotationDictionary
Implements ICollection(Of KeyValuePair(Of Object, Object)), IDictionary(Of Object, Object), IEnumerable(Of KeyValuePair(Of Object, Object))
Implements

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.

Methods

Add<T>(T)

Adds an object to the dictionary by using the Type of the object for the key.

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<T>()

Removes an object with the specified Type from the dictionary.

TryGetValue<T>(Object, T)

Gets the object that has the specified type and is associated with the specified key.

TryGetValue<T>(T)

Gets the object that has the specified type.

Applies to