共用方式為


TemplateWizardDisallowUserTemplatesSecurityAttribute 建構函式

指定範本精靈擴充功能只會載入位於 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
    true 會指定範本精靈擴充功能只載入位於 Visual Studio 安裝目錄或其中一個子目錄中的範本,否則為 false。預設值為 false。

.NET Framework 安全性

請參閱

參考

TemplateWizardDisallowUserTemplatesSecurityAttribute 類別

Microsoft.VisualStudio.TemplateWizard 命名空間