MenuDesigner.GetSampleDataSource Method

Constructs a sample data source to use at design time for the associated control.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in

protected override IHierarchicalEnumerable GetSampleDataSource ()
protected IHierarchicalEnumerable GetSampleDataSource ()
protected override function GetSampleDataSource () : IHierarchicalEnumerable
Not applicable.

Return Value

An object implementing the IHierarchicalEnumerable to use as a data source for the associated Menu.

The sample data source that is constructed by the GetSampleDataSource method has several root menu items with empty paths. This sample data source is used at design time if no menu items are defined for the associated Menu control and if the menu cannot be bound to a data source.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0