ProvideServiceOverrideAttribute 클래스

정의

이 특성은 패키지가 기본 서비스에 대한 대체를 제안한다는 것을 나타냅니다. 이 특성은 의 서브클래스 Package 또는 를 구현하는 클래스의 정의에 포함됩니다 IVsPackage.

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

설명

기본 서비스에는 하나의 대체 또는 재정의만 허용됩니다. 이 특성으로 정의된 서비스는 "ServiceOverrides" 레지스트리 키에 등록됩니다.

생성자

ProvideServiceOverrideAttribute(Object)

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

속성

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)

적용 대상