Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PipelineStoreLocation Enumeration

Specifies alternative locations for a pipeline store instead of a path to a directory.

Namespace:  System.AddIn.Hosting
Assembly:  System.AddIn (in System.AddIn.dll)
[SerializableAttribute]
public enum PipelineStoreLocation
Member nameDescription
ApplicationBaseThe location specified by the AppDomainSetup.ApplicationBase property for setting up the application domain's host.

This enumeration currently contains only the ApplicationBase value.

The methods in the AddInStore class that use this enumeration enable partially trusted hosts, which may not have permission to discover their own location, to find and activate add-ins in their own directory.

You can use the AddInStore.Update(PipelineStoreLocation) and AddInStore.Rebuild(PipelineStoreLocation) method overloads to specify a location for updating or rebuilding the pipeline store, and the AddInStore.FindAddIns(Type, PipelineStoreLocation, String[]) method overload to specify a location for finding add-ins.

The following example uses the ApplicationBase value to activate an add-in from the pipeline store files, which are located in the host application's directory.

// 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 = 
            AddInStore.FindAddIns(typeof(Calculator),PipelineStoreLocation.ApplicationBase);

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.