ProvideExtensibleUIContextRuleAttribute 類別

定義

此屬性會註冊 UI 內容規則

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

建構函式

ProvideExtensibleUIContextRuleAttribute(String, String, UInt32)

建立可延伸規則型 UI 內容專案,此專案會在其他延伸模組新增的任何字詞為 true 時啟動。

擴充器會使用相同的 GUID 來建立新的 UI 內容規則,並將運算式設定為 「*」 來擴充此屬性所建立的規則。

屬性

ContextGuid

要建立之 UI 內容的內容 Guid

Delay

在啟用UI內容之前套用 ms 的延遲

Name

所建立UI內容的診斷名稱

TypeId

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

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

呼叫以註冊這個具有指定內容的屬性。 內容,其中包含用來放置註冊資訊的位置。 它也包含註冊的類型,以及路徑資訊。

Unregister(RegistrationAttribute+RegistrationContext)

取消註冊此自動載入規格。

適用於