AddInStore.Update メソッド

定義

パイプライン セグメントキャッシュを新しいセグメントで更新します。

オーバーロード

名前 説明
Update(PipelineStoreLocation)

PipelineStoreLocation値で指定された場所にある新しいセグメントでパイプライン セグメント キャッシュを更新します。

Update(String)

指定したルート ディレクトリの新しいセグメントでパイプライン セグメント キャッシュを更新します。

Update(PipelineStoreLocation)

PipelineStoreLocation値で指定された場所にある新しいセグメントでパイプライン セグメント キャッシュを更新します。

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

パラメーター

location
PipelineStoreLocation

列挙値の 1 つ。

現在、この列挙体の唯一の値は、ホストのアプリケーション ドメインの設定に使用された ApplicationBase プロパティで指定されたディレクトリです。

返品

String[]

パイプライン セグメントが評価されると警告を記述する文字列のコレクション。

属性

例外

パイプライン ディレクトリ構造にセグメント ディレクトリがありません。

パイプライン ディレクトリ構造へのアクセス違反があります。

location が無効な PipelineStoreLocation 値です。

注釈

このメソッド のオーバーロードを使用して、部分的に信頼されたホスト (独自の場所を検出するアクセス許可がない可能性があります) が、独自のディレクトリ内のアドインを検出できるようにする場合に使用します。

適用対象

Update(String)

指定したルート ディレクトリの新しいセグメントでパイプライン セグメント キャッシュを更新します。

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

パラメーター

pipelineRootFolderPath
String

パイプライン ディレクトリ構造のルートのパス。

返品

String[]

パイプライン セグメントが評価されると警告を記述する文字列のコレクション。

属性

例外

パイプライン ディレクトリ構造にセグメント ディレクトリがありません。

パイプライン ディレクトリ構造へのアクセス違反があります。

次の例は、キャッシュ ファイルを更新する方法を示しています。 このコード例は、 AddInStore クラスに提供されるより大きな例の一部です。

// Update the cache files of the
// pipeline segments and add-ins.
string[] warnings = AddInStore.Update(pipeRoot);

foreach (string warning in warnings)
{
    Console.WriteLine(warning);
}
' Update the cache files of the
' pipeline segments and add-ins.
Dim warnings() As String = AddInStore.Update(pipeRoot)
For Each warning As String In warnings
    Console.WriteLine(warning)
Next

注釈

このメソッドは、アドインがパイプライン ディレクトリ構造にある場合にもアドイン キャッシュを更新します。

新しいパイプライン セグメントまたはアドインがない場合、このメソッドはキャッシュを検証するだけです。

適用対象