AddInStore.UpdateAddIns(String) 方法

定義

在指定位置上更新增益集快取,並且包含新的增益集。Updates the add-in cache and includes new add-ins at a specified location.

public:
 static cli::array <System::String ^> ^ UpdateAddIns(System::String ^ addInsFolderPath);
[System.Security.SecurityCritical]
public static string[] UpdateAddIns (string addInsFolderPath);
static member UpdateAddIns : string -> string[]
Public Shared Function UpdateAddIns (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.

如果未安裝任何新的增益集, 這個方法只會驗證快取。If no new add-ins are installed, this method just validates the cache.

安全性

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

適用於