共用方式為


ProvideCodeGeneratorAttribute.RegisterCodeBase 屬性

如果為 true,則會使用程式碼基底 (即特定組件檔案位置) 註冊產生器。 如果為 false,則組件會在 GAC 中。

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)

語法

'宣告
Public Property RegisterCodeBase As Boolean
    Get
    Set
public bool RegisterCodeBase { get; set; }
public:
property bool RegisterCodeBase {
    bool get ();
    void set (bool value);
}
member RegisterCodeBase : bool with get, set
function get RegisterCodeBase () : boolean
function set RegisterCodeBase (value : boolean)

屬性值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

ProvideCodeGeneratorAttribute 類別

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間