다음을 통해 공유


ProvideGeneratorAttribute 클래스

정의

파생 클래스 또는 를 구현하는 클래스에 추가할 Package때 Visual Basic 및 Visual C# 프로젝트에 대해 지정된 코드 생성기를 등록합니다 IVsPackage.

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

생성자

ProvideGeneratorAttribute(Type, String, String, String, Boolean)

지정된 패키지 및 생성기에 대한 의 ProvideGeneratorAttribute 새 instance 초기화합니다.

속성

Description

생성기에 대한 설명을 가져옵니다.

GenerateDesignTimeSource

디자인 타임에 사용할 소스 코드가 생성되는지 여부를 가져옵니다.

GeneratorType

코드 생성기의 형식을 가져옵니다.

Name

생성기의 이름을 가져옵니다.

PackageGuid

이 생성기 호출을 지원하는 프로젝트가 포함된 패키지의 GUID를 가져옵니다.

TypeId

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

(다음에서 상속됨 RegistrationAttribute)

메서드

GetPackageRegKeyPath(Guid)

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

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

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

Unregister(RegistrationAttribute+RegistrationContext)

regpkg.exe 같은 외부 등록 도구에서 호출할 때 VSPackage에 대한 등록 정보를 제거합니다. 자세한 내용은 VSPackage 등록을 참조하세요.

적용 대상