PipelineStoreLocation 枚举

定义

指定管线存储区的替代位置,而不是目录路径。Specifies alternative locations for a pipeline store instead of a path to a directory.

public enum class PipelineStoreLocation
[System.Serializable]
public enum PipelineStoreLocation
type PipelineStoreLocation = 
Public Enum PipelineStoreLocation
继承
PipelineStoreLocation
属性

字段

ApplicationBase 0

ApplicationBase 属性指定的用于设置应用程序域宿主的位置。The location specified by the ApplicationBase property for setting up the application domain's host.

示例

下面的示例使用 ApplicationBase 值从位于主机应用程序目录中的管道存储文件激活外接程序。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)

注解

此枚举当前仅包含 ApplicationBase 值。This enumeration currently contains only the ApplicationBase value.

使用此枚举的AddInStore类中的方法可启用部分受信任的主机, 这些主机可能无权发现自己的位置, 以在其自己的目录中查找和激活外接程序。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.

您可以使用AddInStore.Update(PipelineStoreLocation)AddInStore.Rebuild(PipelineStoreLocation)方法重载来指定更新或重新生成AddInStore.FindAddIns(Type, PipelineStoreLocation, String[])管道存储区的位置, 使用方法重载来指定查找外接程序的位置。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.

适用于