AddInStore::FindAddIns Method (Type^, PipelineStoreLocation)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

hostViewOfAddIn
Type: System::Type^

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

location
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.

Exception Condition
InvalidPipelineStoreException

There is an access violation to the pipeline directory structure.

ArgumentException

location is an invalid PipelineStoreLocation value.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: