CachedDataHostItemCollection.Add(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 CachedDataHostItem to the end of the collection.
public:
Microsoft::VisualStudio::Tools::Applications::CachedDataHostItem ^ Add(System::String ^ hostItemId);
public Microsoft.VisualStudio.Tools.Applications.CachedDataHostItem Add (string hostItemId);
override this.Add : string -> Microsoft.VisualStudio.Tools.Applications.CachedDataHostItem
Public Function Add (hostItemId As String) As CachedDataHostItem
Parameters
- hostItemId
- String
The namespace and class in which the source data is cached.
Returns
The CachedDataHostItem that was added to the end of the collection.
Exceptions
A CachedDataHostItem that corresponds to hostItemId
already exists in the collection.
Remarks
The hostItemId
parameter is a string that specifies the namespace and the class in the solution document that contains the cached data. The namespace and class name are separated by a period (.), for example, "ExcelWorkbook1.ThisWorkbook".
To add a CachedDataHostItem to the collection at a specific index location, use the Insert method.