AddInStore.FindAddIn Method (Type, String, String, String)


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

Finds a specific add-in.

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

static member FindAddIn : 
        hostViewOfAddIn:Type *
        pipelineRootFolderPath:string *
        addInFilePath:string *
        addInTypeName:string -> Collection<AddInToken>


Type: System.Type

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

Type: System.String

The path to the root of the pipeline directory structure.

Type: System.String

The path and file name of the add-in to find.

Type: System.String

The type name of the add-in.

Return Value

Type: System.Collections.ObjectModel.Collection<AddInToken>

A collection of tokens that contains only the token representing the add-in that was found.

Exception Condition

The length of pipelineRootFolderPath or addInFilePath or addInTypeName is 0.

- or -

The add-in file does not exist in addInfilePath.


One or more parameters are null.


The caller does not have read access permission to pipelineRootFolderPath.

If a single pipeline for an add-in is found, it will be the only item in the AddInToken collection. If multiple pipelines to the specified add-in are found, you can differentiate them by examining the QualificationData property.

The following example finds a specific add-in.

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


for the ability to read the add-in folder. Associated enumeration: FileIOPermissionAccess.Read. Security action: Demand.

.NET Framework
Available since 3.5
Return to top