AddInStore.RebuildAddIns(String) 方法

定義

重建增益集快取,並且包含指定之根目錄中的新增益集。Rebuilds the add-in cache and includes new add-ins from a specified root directory.

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

參數

addInsFolderPath
String

包含一個或多個增益集子目錄的目錄路徑。The path of the directory that contains one or more subdirectories of add-ins.

傳回

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.

addInsFolderPathnulladdInsFolderPath is null.

呼叫端對於 addInsFolderPath 指定的位置不具有讀取與寫入存取權限。Caller does not have both read and write access permissions to the location that is specified by addInsFolderPath.

備註

如果您的增益集位於管線目錄結構外, 請呼叫這個方法。Call this method if your add-ins are outside the pipeline directory structure.

只有在可能發生快取問題且必須重建時, 才使用此方法。Use this method only when there may be a problem with the cache and it must be rebuilt. 如需更快的效能UpdateAddIns , 請使用方法。For faster performance, use the UpdateAddIns method.

安全性

FileIOPermission
讀取和更新增益集資料夾的能力。for the ability to read and update the add-in folder. 相關聯的Read列舉Write:、。Associated enumerations: Read, Write. 安全性動作: DemandSecurity action: Demand.

適用於

另請參閱