Share via


ProvideDesignerMetadataAttribute 類別

定義

宣告類型或物件的其他元數據,允許第三方修改類別上可用的元數據集。

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

建構函式

ProvideDesignerMetadataAttribute(Type, Type)

初始化 的新實例 ProvideDesignerMetadataAttribute,將新的元數據 Type 與目前的 Type關聯。

屬性

IsGlobal

取得或設定實例所提供的元數據修改範圍 ProvideDesignerMetadataAttribute

MetadataType

取得中繼資料的類型。

RuntimeType

取得運行時間類型。

TypeId

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

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

註冊設計工具元數據。

Unregister(RegistrationAttribute+RegistrationContext)

拿掉設計工具元數據登錄機碼。

適用於