This documentation is archived and is not being maintained.

DesignTimeData.GetDataFields Method

Gets the data fields of the specified data source.

[Visual Basic]
Public Shared Function GetDataFields( _
   ByVal dataSource As IEnumerable _
) As PropertyDescriptorCollection
[C#]
public static PropertyDescriptorCollection GetDataFields(
 IEnumerable dataSource
);
[C++]
public: static PropertyDescriptorCollection* GetDataFields(
 IEnumerable* dataSource
);
[JScript]
public static function GetDataFields(
   dataSource : IEnumerable
) : PropertyDescriptorCollection;

Parameters

dataSource
The data source to retrieve the data fields of.

Return Value

A PropertyDescriptorCollection that represents the data fields of the specified data source.

Example

[Visual Basic] 
Dim fields As PropertyDescriptorCollection = DesignTimeData.GetDataFields(dataSource)

[C#] 
PropertyDescriptorCollection fields = DesignTimeData.GetDataFields(dataSource);

[C++] 
PropertyDescriptorCollection* fields = 
   DesignTimeData::GetDataFields(dataSource);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DesignTimeData Class | DesignTimeData Members | System.Web.UI.Design Namespace

Show: