DeclarativeCatalogPart.AccessKey 屬性

定義

呈現 DeclarativeCatalogPart 控制項時,設定的 Web 組件控制項不會使用這個繼承屬性。 只有在防止屬性出現在 Visual Studio 2005 設計工具Microsoft時,才會覆寫此屬性。

public:
 virtual property System::String ^ AccessKey { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public override string AccessKey { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.AccessKey : string with get, set
Public Overrides Property AccessKey As String

屬性值

字串,表示用來透過鍵盤快速巡覽至控制項的鍵盤按鍵。

屬性

備註

屬性 AccessKey 是控制項的成員 DeclarativeCatalogPart ,不會在 Web 元件控制項集合內的任何位置使用,以便轉譯控制項。 因此,您不應該使用這個屬性;設定它不會影響轉譯。

為了防止開發人員使用此屬性,程式碼屬性會設定為在 Visual Studio 中隱藏它。 當您在 Visual Studio 中使用 DeclarativeCatalogPart 控制項時, AccessKey 屬性不會顯示在 [屬性] 窗格或 IntelliSense 中。

如果您想要使用這個屬性,您必須建立繼承自 類別的 CatalogPart 自訂類別。 自訂類別可以使用繼承 AccessKey 的屬性,或覆寫它並變更其行為。

這個屬性無法由佈景主題或樣式表主題設定。 如需詳細資訊,請參閱 ThemeableAttributeASP.NET 主題和麵板

適用於

另請參閱