Muokkaa

Jaa


PipelineStoreLocation Enum

Definition

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

public enum class PipelineStoreLocation
[System.Serializable]
public enum PipelineStoreLocation
[<System.Serializable>]
type PipelineStoreLocation = 
Public Enum PipelineStoreLocation
Inheritance
PipelineStoreLocation
Attributes

Fields

Name Value Description
ApplicationBase 0

The location specified by the ApplicationBase property for setting up the application domain's host.

Examples

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);
' 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.
Dim tokens As Collection(Of AddInToken) = _
    AddInStore.FindAddIns(GetType(Calculator), PipelineStoreLocation.ApplicationBase)

Remarks

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.

Applies to