Share via


DesignSurfaceExtensionAttribute 類別

定義

通知 Visual Studio 環境,VSPackage 提供 Type 實作服務,以自定義或擴充在設計工具載入時間的任何實 DesignSurface 作所提供的服務。

public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class DesignSurfaceExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type DesignSurfaceExtensionAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class DesignSurfaceExtensionAttribute
Inherits RegistrationAttribute
繼承
DesignSurfaceExtensionAttribute
屬性

建構函式

DesignSurfaceExtensionAttribute(Type)

建立 類別的新實例, DesignSurfaceExtensionAttribute 指定指定物件做為提供 VSPackage 的實作 DesignSurfaceExtension

屬性

ExtensionType

Type註冊為提供 VSPackage 之 物件的 ,其實DesignSurfaceExtension作是 用來自定義設計介面。

LoadAtIdle

控制 VSPackage 所使用之設計工具的載入時,會安裝 所註冊DesignSurfaceExtensionAttributeDesignSurfaceExtensionAttribute 實作所提供的延伸模組。

TypeId

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

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

註冊設計介面延伸模組。

Unregister(RegistrationAttribute+RegistrationContext)

拿掉設計介面延伸模組登錄機碼。

適用於