Share via


ProvideCodeGeneratorAttribute Constructor

Apply this attribute to the package class of a package that provides a code generator.

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll)

Syntax

'Declaration
Public Sub New ( _
    type As Type, _
    name As String, _
    description As String, _
    generatesDesignTimeSource As Boolean _
)
public ProvideCodeGeneratorAttribute(
    Type type,
    string name,
    string description,
    bool generatesDesignTimeSource
)
public:
ProvideCodeGeneratorAttribute(
    Type^ type, 
    String^ name, 
    String^ description, 
    bool generatesDesignTimeSource
)
new : 
        type:Type * 
        name:string * 
        description:string * 
        generatesDesignTimeSource:bool -> ProvideCodeGeneratorAttribute
public function ProvideCodeGeneratorAttribute(
    type : Type, 
    name : String, 
    description : String, 
    generatesDesignTimeSource : boolean
)

Parameters

  • type
    Type: System.Type
    The type implementing the Code Generator interface IVsSingleFileGenerator
  • name
    Type: System.String
    The name of this generator, used in the Custom Tool property of a file to which it is applied
  • description
    Type: System.String
    A human readable description of this generator
  • generatesDesignTimeSource
    Type: System.Boolean
    If true, types from files produced by this custom tool will be made available to visual designers

.NET Framework Security

See Also

Reference

ProvideCodeGeneratorAttribute Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace