CachedDataItemCollection.Add(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.