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

열거형 값 중 하나입니다.

현재 이 열거형의 유일한 값은 호스트의 애플리케이션 도메인을 설정하는 데 사용된 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

설명

또한 이 메서드는 추가 기능이 파이프라인 디렉터리 구조에 있는 경우 추가 기능 캐시를 업데이트합니다.

새 파이프라인 세그먼트 또는 추가 기능이 없는 경우 이 메서드는 캐시의 유효성을 검사합니다.

적용 대상