Share via


CachedDataItemCollection.Add(String, String) Method

Definition

Adds the specified CachedDataItem to the end of the collection.

public:
 Microsoft::VisualStudio::Tools::Applications::CachedDataItem ^ Add(System::String ^ dataId, System::String ^ dataType);
public Microsoft.VisualStudio.Tools.Applications.CachedDataItem Add (string dataId, string dataType);
override this.Add : string * string -> Microsoft.VisualStudio.Tools.Applications.CachedDataItem
Public Function Add (dataId As String, dataType As String) As CachedDataItem

Parameters

dataId
String

The name of the object to add to the data cache.

dataType
String

The full assembly-qualified name of the type of the object to add to the data cache.

Returns

The CachedDataItem that was added to the end of the collection.

Exceptions

A CachedDataItem that corresponds to dataId already exists in the collection.

Remarks

For details about the format of an assembly-qualified name of a type, see the System.Type.AssemblyQualifiedName property.

To add a CachedDataItem to the collection at a specific index location, use the Insert method.

Applies to