MenuItem.DataPath 屬性

定義

取得繫結至功能表項目之資料的路徑。

public:
 property System::String ^ DataPath { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public string DataPath { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DataPath : string
Public ReadOnly Property DataPath As String

屬性值

String

繫結至節點之資料的路徑。 這個值是來自 Menu 控制項所繫結的階層式資料來源控制項。 預設值為空字串 ("")。

屬性

備註

DataPath呼叫 方法以提供系結至目前功能表項目之資料的路徑時 IHierarchicalDataSource.GetHierarchicalView ,通常會使用 屬性值。 這個方法接著會傳 System.Web.UI.HierarchicalDataSourceView 回 物件,其中包含位於指定路徑的資料。

適用於

另請參閱