FindAddIns Method (Type, PipelineStoreLocation)
Collapse the table of content
Expand the table of content

AddInStore.FindAddIns Method (Type, PipelineStoreLocation)

Finds all add-ins for a specified host view of the add-in at a location specified by the PipelineStoreLocation enumeration value.

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

public static Collection<AddInToken> FindAddIns(
	Type hostViewOfAddIn,
	PipelineStoreLocation location


Type: System.Type

The type that defines the host's view of the add-in.

Type: System.AddIn.Hosting.PipelineStoreLocation

The host application's base directory.

Return Value

Type: System.Collections.ObjectModel.Collection<AddInToken>
A collection of tokens that represent the add-ins that were found.


There is an access violation to the pipeline directory structure.

The PipelineStoreLocation enumeration currently contains only the ApplicationBase value, which points to the host's application base directory.

The following example finds add-ins at the location specified by the PipelineStoreLocation enumeration.

// Search for add-ins of type Calculator (the host view of the add-in) 
// specifying the host's application base, instead of a path, 
// for the FindAddIns method.

Collection<AddInToken> tokens = 

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

© 2016 Microsoft