Share via


ProvideIncludeFolderAttribute Constructor

Registers a folder to search for text template include files. Apply this attribute to a package class if you want the include folder to be registered when the package is installed.

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 ( _
    extension As String, _
    index As Integer, _
    folder As String _
)
public ProvideIncludeFolderAttribute(
    string extension,
    int index,
    string folder
)
public:
ProvideIncludeFolderAttribute(
    String^ extension, 
    int index, 
    String^ folder
)
new : 
        extension:string * 
        index:int * 
        folder:string -> ProvideIncludeFolderAttribute
public function ProvideIncludeFolderAttribute(
    extension : String, 
    index : int, 
    folder : String
)

Parameters

  • extension
    Type: System.String
    The file extension (such as .tt) of templates that will include files from this folder.
  • index
    Type: System.Int32
    If there are multiple folders, this index defines the order in which they are searched.
  • folder
    Type: System.String
    The path of the folder. This path is relative to the component path of the assembly being registered.

.NET Framework Security

See Also

Reference

ProvideIncludeFolderAttribute Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace