Share via


ProvideCodeGeneratorExtensionAttribute 클래스

정의

중요

이 API는 CLS 규격이 아닙니다.

특정 파일 확장자에 대한 코드 생성기 등록을 제공하는 특성 클래스

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

설명

생성기가 아닌 패키지 클래스에 적용해야 합니다. 이 특성은 ProvideCodeGenerator 외에도 작동하여 두 가지를 설정합니다. a) 확장명이 제공된 파일에 지정된 생성기의 기본 애플리케이션 b) 파일 확장명을 등록해야 하는 ASP.Net 프로젝트 시스템에서 올바르게 작업

생성자

ProvideCodeGeneratorExtensionAttribute(String, String)

생성자

필드

AspNetProjectSystemGuid

ASP.Net 대한 실제 프로젝트 GUID(패키지 Guid와 반대)

CSharpProjectSystemGuid

CSharp에 대한 실제 프로젝트 GUID(패키지 Guid와 반대)

VisualBasicProjectSystemGuid

Visual Basic에 대한 실제 프로젝트 GUID(패키지 Guid와 반대)

속성

Extension

명명된 생성기를 바인딩할 확장입니다.

Name

확장을 추가할 생성기의 이름입니다.

ProjectSystem

이 코드 생성기가 등록된 프로젝트 시스템

ProjectSystemPackage

이 코드 생성기가 등록된 프로젝트 시스템을 구현하는 패키지

TypeId

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

(다음에서 상속됨 RegistrationAttribute)

메서드

GetPackageRegKeyPath(Guid)

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

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

이 생성기 등록

Unregister(RegistrationAttribute+RegistrationContext)

지정한 키 삭제

적용 대상