SingleFileGeneratorSupportRegistrationAttribute Класс

Определение

Создает ключ ProjectTypeGuid в $RegRoot$\Generators. Этот атрибут регистрации используется системами проектов, которые поддерживают генераторы одного файла.

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

Комментарии

Ответственность за создание ключа Прожекттипегуид лежит на проекте. Затем клиенты определенных типов файлов, реализующие реальный генератор одиночных файлов, отвечают за регистрацию генераторов отдельных файлов в подразделе проекта ключа "генераторы". Клиенты, реализующие определенный генератор одиночных файлов, используют CodeGeneratorRegistrationAttribute для этой цели.

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

SingleFileGeneratorSupportRegistrationAttribute(Type)

Инициализирует новый экземпляр класса SingleFileGeneratorSupportRegistrationAttribute для регистрации пользовательского генератора кодов.

Свойства

ProjectFactoryGuid

Получает идентификатор GUID, представляющий тип генератора.

TypeId

Получает текущий экземпляр данного атрибута.

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

Методы

GetPackageRegKeyPath(Guid)

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

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

Регистрирует данный атрибут с заданным контекстом.

Unregister(RegistrationAttribute+RegistrationContext)

Отменяет регистрацию этого атрибута.

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