ProvideServiceAttribute 클래스

정의

이 특성은 패키지가 의 하위 클래스 Package 또는 를 구현 IVsPackage하는 클래스에 적용될 때 서비스를 제안한다는 것을 나타냅니다.

public ref class ProvideServiceAttribute sealed : Microsoft::VisualStudio::Shell::ProvideServiceAttributeBase
public ref class ProvideServiceAttribute sealed : Microsoft::VisualStudio::Shell::ProvideServiceAttributeBase
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideServiceAttribute : Microsoft.VisualStudio.Shell.ProvideServiceAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideServiceAttribute = class
    inherit ProvideServiceAttributeBase
Public NotInheritable Class ProvideServiceAttribute
Inherits ProvideServiceAttributeBase
상속
특성

설명

이 특성으로 정의된 서비스는 "서비스" 레지스트리 키 아래에 등록됩니다.

생성자

ProvideServiceAttribute(Object)

ProvideServiceAttribute의 새 인스턴스를 초기화합니다.

속성

IsAsyncQueryable

서비스가 비동기 서비스 공급자를 통해 검색되는 것을 지원하는 경우 를 억제합니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
IsCacheable

셸 서비스 계층에 서비스를 캐시할 수 있음을 나타냅니다. MPF 자체는 서비스를 캐시하므로 서비스 생성 콜백이 두 번 이상 호출되지 않으므로 이는 MPF 제공 서비스에 대한 형식에 더 가릅니다. 이렇게 하면 서비스 요청에 대한 네이티브> 관리형 전환을 제거하여 약간의 성능이 향상됩니다. 이 값을 false로 설정할 강력한 이유가 없는 경우 true로 설정해야 합니다. 이후 버전에서는 기본값이 true일 수 있습니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
IsFreeThreaded

서비스가 스레드에서 검색 및 사용이 지원되는 경우 를 억제합니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
Service

서비스의 유형입니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
ServiceName

서비스 이름

(다음에서 상속됨 ProvideServiceAttributeBase)
ServiceType

이 특성에 선언된 서비스의 GUID를 가져옵니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
TypeId

RegistrationAttribute 파생 클래스가 System.ComponentModel.TypeDescriptor.GetAttributes(...)에서 작동하도록 하려면 TypeID 속성을 재정의합니다. 이 속성에서 파생된 특성은 클래스에 적용할 수 있는 인스턴스에 대한 더 나은 제어가 필요한 경우에만 이 속성을 재정의해야 합니다.

(다음에서 상속됨 RegistrationAttribute)

메서드

GetPackageRegKeyPath(Guid)

VSPackage의 레지스트리 경로(애플리케이션의 레지스트리 루트를 기준으로)를 가져옵니다.

(다음에서 상속됨 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

지정된 컨텍스트에 이 특성을 등록합니다.

(다음에서 상속됨 ProvideServiceAttributeBase)
Unregister(RegistrationAttribute+RegistrationContext)

이 특성을 등록 취소합니다.

(다음에서 상속됨 ProvideServiceAttributeBase)

적용 대상