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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.