Delen via


TemplateWizardDisallowUserTemplatesSecurityAttribute Constructor

Specifies that the template wizard extension will only load templates located in the Visual Studio installation directory or one of its subdirectories.

Namespace:  Microsoft.VisualStudio.TemplateWizard
Assembly:  Microsoft.VisualStudio.TemplateWizardInterface (in Microsoft.VisualStudio.TemplateWizardInterface.dll)

Syntax

'Declaration
Public Sub New ( _
    disallowUserTemplates As Boolean _
)
public TemplateWizardDisallowUserTemplatesSecurityAttribute(
    bool disallowUserTemplates
)
public:
TemplateWizardDisallowUserTemplatesSecurityAttribute(
    bool disallowUserTemplates
)
new : 
        disallowUserTemplates:bool -> TemplateWizardDisallowUserTemplatesSecurityAttribute
public function TemplateWizardDisallowUserTemplatesSecurityAttribute(
    disallowUserTemplates : boolean
)

Parameters

  • disallowUserTemplates
    Type: System.Boolean

    true to specify that the template wizard extension will only load templates located in the Visual Studio installation directory or one of its subdirectories; otherwise, false. The default is false.

.NET Framework Security

See Also

Reference

TemplateWizardDisallowUserTemplatesSecurityAttribute Class

Microsoft.VisualStudio.TemplateWizard Namespace