PipelineStoreLocation 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
디렉터리에 대한 경로 대신 파이프라인 저장소의 대체 위치를 지정합니다.
public enum class PipelineStoreLocation
[System.Serializable]
public enum PipelineStoreLocation
[<System.Serializable>]
type PipelineStoreLocation =
Public Enum PipelineStoreLocation
- 상속
- 특성
필드
| Name | 값 | Description |
|---|---|---|
| ApplicationBase | 0 | 애플리케이션 도메인의 호스트를 ApplicationBase 설정하기 위해 속성에서 지정한 위치입니다. |
예제
다음 예제에서는 ApplicationBase 값을 사용하여 호스트 애플리케이션의 디렉터리에 있는 파이프라인 저장소 파일에서 추가 기능을 활성화합니다.
// 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);
' 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)
설명
이 열거형에는 현재 ApplicationBase 값만 포함됩니다.
이 열거형을 사용하는 클래스의 AddInStore 메서드를 사용하면 자체 위치를 검색할 수 있는 권한이 없는 부분적으로 신뢰할 수 있는 호스트가 자신의 디렉터리에서 추가 기능을 찾고 활성화할 수 있습니다.
및 AddInStore.Rebuild(PipelineStoreLocation) 메서드 오버로드를 사용하여 파이프라인 저장소를 업데이트하거나 다시 빌드할 위치를 지정하고 AddInStore.FindAddIns(Type, PipelineStoreLocation, String[]) 메서드 오버로드를 사용하여 AddInStore.Update(PipelineStoreLocation) 추가 기능을 찾을 위치를 지정할 수 있습니다.