AddInStore.FindAddIns Method (Type, String, String[])

Finds all add-ins for a specified host view of the add-in from a specified root directory.

Namespace:  System.AddIn.Hosting
Assembly:  System.AddIn (in System.AddIn.dll)

public static Collection<AddInToken> FindAddIns(
	Type hostViewOfAddIn,
	string pipelineRootFolderPath,
	params 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: 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.

ExceptionCondition
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 method of the AddInToken class.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft