Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DesignTimeData Class

Provides helper methods that can be used by control designers to generate sample data for data-bound properties at design time. This class cannot be inherited.

System.Object
  System.Web.UI.Design.DesignTimeData

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class DesignTimeData

The DesignTimeData type exposes the following members.

  NameDescription
Public methodStatic memberCreateDummyDataBoundDataTableCreates a DataTable object that contains three columns with names indicating that the columns are connected to a data source.
Public methodStatic memberCreateDummyDataTableCreates a DataTable object that contains three columns with names that indicate that the columns contain sample data.
Public methodStatic memberCreateSampleDataTable(IEnumerable)Creates a sample DataTable object with the same schema as the provided data.
Public methodStatic memberCreateSampleDataTable(IEnumerable, Boolean)Creates a DataTable object with the same schema as the provided data and optionally containing column names indicating that the data is bound data.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberGetDataFieldsGets a collection of property descriptors for the data fields of the specified data source.
Public methodStatic memberGetDataMemberGets the specified data member from the specified data source.
Public methodStatic memberGetDataMembersGets the names of the data members in the specified data source.
Public methodStatic memberGetDesignTimeDataSourceAdds the specified number of sample rows to the specified data table.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodStatic memberGetSelectedDataSource(IComponent, String)Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data source name.
Public methodStatic memberGetSelectedDataSource(IComponent, String, String)Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data-source name and member name.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberDataBindingHandlerInfrastructure. Gets an event handler for data binding.
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft