ProvideCodeGeneratorAttribute Класс

Определение

Важно!

Этот API несовместим с CLS.

Класс атрибута для регистрации генератора кода

public ref class ProvideCodeGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideCodeGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.CLSCompliant(false)]
public sealed class ProvideCodeGeneratorAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class ProvideCodeGeneratorAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.CLSCompliant(false)>]
type ProvideCodeGeneratorAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type ProvideCodeGeneratorAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideCodeGeneratorAttribute
Inherits RegistrationAttribute
Наследование
ProvideCodeGeneratorAttribute
Атрибуты

Комментарии

Должен применяться к самому классу пакета, а не к генератору.

Конструкторы

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

Конструктор

Поля

AspNetProjectGuid

Guid пакета системы проекта ASP.Net.

CSharpProjectGuid

Guid пакета системы проекта C#.

VisualBasicProjectGuid

Guid пакета системы проекта Visual Basic.

Свойства

Description

Описание генератора, удобное для человеческого восприятия.

GeneratesDesignTimeSource

Следует ли пометить этот генератор кода как предоставляющий исходный код во время разработки

Name

Имя этого генератора

ProjectSystem

Система проекта, в которой зарегистрирован этот генератор кода.

RegisterCodeBase

Следует ли зарегистрировать генератор с помощью базы кода

Type

Тип, реализующий генератор кода.

TypeId

Переопределите свойство TypeID, чтобы разрешить производным классам RegistrationAttribute работать с System.ComponentModel.TypeDescriptor.GetAttributes(...). Атрибут, производный от этого , должен переопределять это свойство только в том случае, если ему требуется более качественный контроль над экземплярами, которые можно применить к классу.

(Унаследовано от RegistrationAttribute)

Методы

GetPackageRegKeyPath(Guid)

Получает путь в реестре (относительно корня реестра приложения) VSPackage.

(Унаследовано от RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Регистрация данного генератора

Unregister(RegistrationAttribute+RegistrationContext)

Удаление указанных ключей.

Применяется к