संपादित करें

इसके माध्यम से साझा किया गया


AddInStore.Rebuild Method

Definition

Rebuilds the pipeline segments cache and includes new segments.

Overloads

Rebuild(PipelineStoreLocation)

Rebuilds the pipeline segments cache and includes new segments at the location specified by a PipelineStoreLocation value.

Rebuild(String)

Rebuilds the pipeline segments cache and includes new segments from a specified root directory.

Rebuild(PipelineStoreLocation)

Rebuilds the pipeline segments cache and includes new segments at the location specified by a PipelineStoreLocation value.

public:
 static cli::array <System::String ^> ^ Rebuild(System::AddIn::Hosting::PipelineStoreLocation location);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public static string[] Rebuild (System.AddIn.Hosting.PipelineStoreLocation location);
public static string[] Rebuild (System.AddIn.Hosting.PipelineStoreLocation location);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
static member Rebuild : System.AddIn.Hosting.PipelineStoreLocation -> string[]
static member Rebuild : System.AddIn.Hosting.PipelineStoreLocation -> string[]
Public Shared Function Rebuild (location As PipelineStoreLocation) As String()

Parameters

location
PipelineStoreLocation

One of the enumeration values.

Currently the only value in this enumeration is the directory specified by the ApplicationBase property that was used to set up the host's application domain.

Returns

String[]

A collection of strings that describe warnings as the pipeline segments are evaluated.

Attributes

Exceptions

A segment directory is missing from the pipeline directory structure.

There is an access violation to the pipeline directory structure.

location is an invalid PipelineStoreLocation value.

Remarks

Use this method overload to enable a partially trusted host, which may not have permission to discover its own location, to discover add-ins in its own directory.

Applies to

Rebuild(String)

Rebuilds the pipeline segments cache and includes new segments from a specified root directory.

public:
 static cli::array <System::String ^> ^ Rebuild(System::String ^ pipelineRootFolderPath);
[System.Security.SecurityCritical]
public static string[] Rebuild (string pipelineRootFolderPath);
[<System.Security.SecurityCritical>]
static member Rebuild : string -> string[]
Public Shared Function Rebuild (pipelineRootFolderPath As String) As String()

Parameters

pipelineRootFolderPath
String

The path of the root of the pipeline directory structure.

Returns

String[]

A collection of strings that describe warnings as the pipeline segments are evaluated.

Attributes

Exceptions

A segment directory is missing from the pipeline directory structure.

There is an access violation to the pipeline directory structure.

Remarks

This method also rebuilds the add-ins cache if the add-ins are in the pipeline directory structure.

Use this method only when there may be a problem with the cache and it must be rebuilt. For faster performance, use the Update method.

See also

Applies to