RegistrationAttribute 클래스

정의

VSPackage 등록에 대한 추상 클래스입니다. RegistrationAttribute 클래스를 사용하면 등록 도구를 변경하지 않고 새 등록 정보를 추가할 수 있습니다.

public ref class RegistrationAttribute abstract : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.CLSCompliant(true)]
public abstract class RegistrationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public abstract class RegistrationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.CLSCompliant(true)>]
type RegistrationAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type RegistrationAttribute = class
    inherit Attribute
Public MustInherit Class RegistrationAttribute
Inherits Attribute
상속
RegistrationAttribute
파생
특성

설명

구현 시기

에서 등록 특성을 RegistrationAttribute 파생하여 파생 클래스 또는 를 구현하는 클래스에 적용할 Package때 특수 레지스트리 항목을 만드는 클래스를 만듭니다 IVsPackage.

기본 사용

VSPackage 등록 정보를 제공하는 특성 클래스입니다. Regpkg.exe 또는 기타 등록 도구는 에서 파생되고 를 구현 RegistrationAttribute해야 합니다. 자세한 내용은 VSPackage 등록을 참조하세요.

RegistrationAttribute 는 VSPackage 개발자가 등록 도구를 변경할 필요 없이 등록 특성 클래스를 추가할 수 있도록 하는 추상 특성 클래스입니다.

regpkg.exe 또는 기타 등록 도구에 등록 정보를 제공하는 특성 클래스는 에서 RegistrationAttribute파생되어야 하며 및 Unregister 추상 메서드를 Register 구현해야 합니다.

regpkg.exe 같은 등록 도구는 클래스 및 RegistrationAttribute.RegistrationContext를 구현해야 합니다.RegistrationAttribute.Key

생성자

RegistrationAttribute()

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

속성

TypeId

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

메서드

GetPackageRegKeyPath(Guid)

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

Register(RegistrationAttribute+RegistrationContext)

regpkg.exe 같은 외부 등록 도구에서 호출할 때 지정된 컨텍스트에 이 VSPackage를 등록합니다. 자세한 내용은 VSPackage 등록을 참조하세요.

Unregister(RegistrationAttribute+RegistrationContext)

지정된 컨텍스트에서 이 특성의 등록을 취소하기 위해 호출됩니다.

적용 대상