Share via


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

ASP.Net Project System 套件的 Guid

CSharpProjectGuid

C# 專案系統套件的 Guid

VisualBasicProjectGuid

Visual Basic 項目系統套件的 Guid

屬性

Description

這個產生器的人類可讀描述

GeneratesDesignTimeSource

是否要將此程式代碼產生器標示為提供設計時間原始程式碼

Name

這個產生器的名稱

ProjectSystem

此程式代碼產生器註冊的項目系統

RegisterCodeBase

是否要使用程式代碼基底註冊產生器

Type

實作程式代碼產生器的型別

TypeId

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別使用 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性必須覆寫此屬性,只有在實例上需要更好的控件,才能套用至類別。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

取得相對於 VSPackage 應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

註冊此產生器

Unregister(RegistrationAttribute+RegistrationContext)

刪除我們的指定金鑰

適用於