Share via


AddInStore 클래스

정의

사용 가능한 추가 기능 및 파이프라인 세그먼트에 대한 정보를 저장하고 찾는 메서드를 제공합니다.

public ref class AddInStore abstract sealed
public static class AddInStore
type AddInStore = class
Public Class AddInStore
상속
AddInStore

예제

다음 예제에서는 캐시 파일을 업데이트하는 방법을 보여줍니다.

// Get path for the pipeline root.
// Assumes that the current directory is the
// pipeline directory structure root directory.
String pipeRoot = Environment.CurrentDirectory;

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

foreach (string warning in warnings)
{
    Console.WriteLine(warning);
}

// Search for add-ins of type Calculator (the host view of the add-in)
// specifying the host's application base, instead of a path,
// for the FindAddIns method.

Collection<AddInToken> tokens =
            AddInStore.FindAddIns(typeof(Calculator), PipelineStoreLocation.ApplicationBase);
' Get the path for the pipeline root.  
' Assumes that the current directory is the
' pipline directory structure root directory.
Dim pipeRoot As String = Environment.CurrentDirectory
' 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

' Search for add-ins of type Calculator (the host view of the add-in)
' specifying the host's application base, instead of a path,
' for the FindAddIns method.
Dim tokens As Collection(Of AddInToken) = _
    AddInStore.FindAddIns(GetType(Calculator), PipelineStoreLocation.ApplicationBase)

설명

다음 표에 설명된 대로 이 클래스를 사용하여 두 개의 캐시 파일을 빌드, 다시 빌드 및 업데이트합니다.

캐시 파일 파일을 만드는 메서드
PipelineSegments.store

이 파일은 파이프라인 디렉터리 구조의 루트 디렉터리에 있습니다.
Update

새 파이프라인 세그먼트를 사용하여 파일을 업데이트. 새 세그먼트가 설치되지 않은 경우 이 메서드는 캐시의 유효성을 검사합니다.

Rebuild

파일을 다시 빌드하고 새 파이프라인 세그먼트를 포함합니다.
AddIns.store

이 파일은 하나 이상의 추가 기능 하위 디렉터리를 포함하는 디렉터리에 있습니다. 이 디렉터리가 파이프라인 디렉터리 구조에 있는 경우 이름이 AddIns여야 합니다.
UpdateAddIns

지정된 위치에 새 추가 기능을 사용하여 파일을 업데이트. 추가 기능이 파이프라인 디렉터리 구조 외부에 있는 경우 이 메서드를 호출합니다.

새 추가 기능이 설치되지 않은 경우 이 메서드는 캐시의 유효성을 검사합니다.

RebuildAddIns

파일을 다시 빌드하고 지정된 위치에 추가 기능을 포함합니다. 추가 기능이 파이프라인 디렉터리 구조 외부에 있는 경우 이 메서드를 호출합니다.

Update

추가 기능이 파이프라인 디렉터리 구조에 있는 경우 이 메서드는 새 추가 기능으로 파일을 업데이트합니다.

Rebuild

추가 기능이 파이프라인 디렉터리 구조에 있는 경우 이 메서드는 파일을 다시 빌드하고 새 추가 기능을 포함합니다.

이러한 메서드는 이전에 존재하지 않는 경우 캐시 파일을 만듭니다.

캐시 파일을 만든 후 메서드를 FindAddIns 사용하여 파일을 검사하여 추가 기능의 지정된 호스트 뷰와 일치하는 모든 추가 기능을 찾습니다. 메서드를 FindAddIn 사용하여 특정 추가 기능을 찾을 수도 있습니다.

중요

신뢰할 수 없는 사용자 또는 엔터티가 PipelineSegments.store 액세스하고 Addins.store 수 있도록 허용하는 것은 지원되지 않습니다. 이렇게 하면 애플리케이션에 대 한 데이터 손상 문제가 발생할 수 있습니다.

메서드

FindAddIn(Type, String, String, String)

특정 추가 기능을 찾습니다.

FindAddIns(Type, PipelineStoreLocation)

PipelineStoreLocation 열거형 값으로 지정된 위치에서 지정된 추가 기능 호스트 뷰에 대한 추가 기능을 모두 찾습니다.

FindAddIns(Type, PipelineStoreLocation, String[])

PipelineStoreLocation 값으로 지정된 위치와 선택적 추가 기능 폴더에서 지정된 추가 기능 호스트 뷰에 대한 추가 기능을 모두 찾습니다.

FindAddIns(Type, String, String[])

지정된 루트 디렉터리에서 지정된 추가 기능 호스트 뷰에 대한 추가 기능을 모두 찾습니다.

Rebuild(PipelineStoreLocation)

파이프라인 세그먼트 캐시를 다시 빌드하고 PipelineStoreLocation 값으로 지정된 위치에서 새 세그먼트를 포함합니다.

Rebuild(String)

파이프라인 세그먼트 캐시를 다시 빌드하고 지정된 루트 디렉터리에서 새 세그먼트를 포함합니다.

RebuildAddIns(String)

추가 기능 캐시를 다시 빌드하고 지정된 루트 디렉터리에서 새 추가 기능을 포함합니다.

Update(PipelineStoreLocation)

PipelineStoreLocation 값으로 지정된 위치에서 새 세그먼트로 파이프라인 세그먼트 캐시를 업데이트합니다.

Update(String)

지정된 루트 디렉터리에서 새 세그먼트로 파이프라인 세그먼트 캐시를 업데이트합니다.

UpdateAddIns(String)

추가 기능 캐시를 업데이트하고 지정된 위치에서 새 추가 기능을 포함합니다.

적용 대상

추가 정보