AddInStore::FindAddIns Method (Type^, String^, array<String^>^)
Finds all add-ins for a specified host view of the add-in from a specified root directory.
Assembly: System.AddIn (in System.AddIn.dll)
public: [SecurityCriticalAttribute] static Collection<AddInToken^>^ FindAddIns( Type^ hostViewOfAddIn, String^ pipelineRootFolderPath, ... array<String^>^ addInFolderPaths )
Parameters
- hostViewOfAddIn
-
Type:
System::Type^
The type that defines the host's view of the add-in.
- pipelineRootFolderPath
-
Type:
System::String^
The path of the root of the pipeline directory structure.
- addInFolderPaths
-
Type:
array<System::String^>^
(Optional). The path of the directory that contains one or more subdirectories of add-ins. Because this parameter takes an array of strings, you can specify more than one path.
This parameter is not required if your add-ins are located in the pipeline directory structure under the AddIns folder.
Return Value
Type: System.Collections.ObjectModel::Collection<AddInToken^>^A collection of tokens that represent the add-ins that were found.
| Exception | Condition |
|---|---|
| InvalidPipelineStoreException | There is an access violation to the pipeline directory structure. |
This method examines the store files of cached add-in and pipeline segment information to find all add-ins that match a specified hostAddInView type. You can then use one of the tokens in the returned AddInToken collection to activate a specific add-in by calling the Activate<T> method of the AddInToken class.
Available since 3.5