指定模板向导扩展只能加载位于 Visual Studio 安装目录或其子目录之一中的模版。
命名空间: Microsoft.VisualStudio.TemplateWizard
程序集: Microsoft.VisualStudio.TemplateWizardInterface(在 Microsoft.VisualStudio.TemplateWizardInterface.dll 中)
语法
声明
Public Sub New ( _
disallowUserTemplates As Boolean _
)
public TemplateWizardDisallowUserTemplatesSecurityAttribute(
bool disallowUserTemplates
)
public:
TemplateWizardDisallowUserTemplatesSecurityAttribute(
bool disallowUserTemplates
)
new :
disallowUserTemplates:bool -> TemplateWizardDisallowUserTemplatesSecurityAttribute
public function TemplateWizardDisallowUserTemplatesSecurityAttribute(
disallowUserTemplates : boolean
)
参数
- disallowUserTemplates
类型:System.Boolean
指定模板向导扩展只能加载位于 Visual Studio 安装目录或其子目录之一中的模版,则为 true;否则为 false。默认值为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。