AddInStore.Rebuild 方法

定義

重建管線區段快取,並且包含新區段。Rebuilds the pipeline segments cache and includes new segments.

多載

Rebuild(PipelineStoreLocation)

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)

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);
static member Rebuild : System.AddIn.Hosting.PipelineStoreLocation -> string[]
Public Shared Function Rebuild (location As PipelineStoreLocation) As String()

參數

location
PipelineStoreLocation

其中一個列舉值。One of the enumeration values.

目前這個列舉型別中的唯一值是 ApplicationBase 屬性所指定的目錄,這個屬性已用來設定主應用程式的應用程式定義域。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.

傳回

String[]

在驗證管線區段時描述警告的字串集合。A collection of strings that describe warnings as the pipeline segments are evaluated.

屬性

例外狀況

管線目錄結構遺漏區段目錄。A segment directory is missing from the pipeline directory structure.

管線目錄結構發生存取違規。There is an access violation to the pipeline directory structure.

location 是無效的 PipelineStoreLocation 值。location is an invalid PipelineStoreLocation value.

備註

使用這個方法多載來啟用部分信任的主控制項, 這可能沒有探索其本身位置的許可權, 以便在自己的目錄中探索增益集。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.

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);
static member Rebuild : string -> string[]
Public Shared Function Rebuild (pipelineRootFolderPath As String) As String()

參數

pipelineRootFolderPath
String

管線目錄結構的根目錄路徑。The path of the root of the pipeline directory structure.

傳回

String[]

在驗證管線區段時描述警告的字串集合。A collection of strings that describe warnings as the pipeline segments are evaluated.

屬性

例外狀況

管線目錄結構遺漏區段目錄。A segment directory is missing from the pipeline directory structure.

管線目錄結構發生存取違規。There is an access violation to the pipeline directory structure.

備註

如果增益集位於管線目錄結構中, 這個方法也會重建增益集快取。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. 如需更快的效能Update , 請使用方法。For faster performance, use the Update method.

另請參閱

適用於