共用方式為


RegisterProjectItemAttribute 類別

定義

警告

RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.

public ref class RegisterProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class RegisterProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Obsolete("RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.")]
public sealed class RegisterProjectItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.")>]
type RegisterProjectItemAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class RegisterProjectItemAttribute
Inherits RegistrationAttribute
繼承
RegisterProjectItemAttribute
屬性

建構函式

RegisterProjectItemAttribute(Object, String, String, Int32)
已淘汰.

初始化 RegisterProjectItemAttribute 的新執行個體。

屬性

ItemType
已淘汰.

描述項目類型的字串。 此字串會當做 [新增專案] 對話框左側的資料夾使用。

Priority
已淘汰.

取得此類型的排序優先順序。

ProjectFactoryType
已淘汰.

取得專案處理站類型的 GUID。

TemplateDir
已淘汰.

取得找到此項目類型的範本所在的目錄。

TypeId
已淘汰.

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別使用 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性必須覆寫此屬性,只有在實例上需要更好的控件,才能套用至類別。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)
已淘汰.

取得相對於 VSPackage 應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)
已淘汰.

註冊此項目類型。

Unregister(RegistrationAttribute+RegistrationContext)
已淘汰.

取消註冊此編輯器。

適用於