This documentation is archived and is not being maintained.
DesignTimeData.GetDataMember Method
.NET Framework 1.1
Gets the specified data member from the specified data source.
[Visual Basic] Public Shared Function GetDataMember( _ ByVal dataSource As IListSource, _ ByVal dataMember As String _ ) As IEnumerable [C#] public static IEnumerable GetDataMember( IListSource dataSource, string dataMember ); [C++] public: static IEnumerable* GetDataMember( IListSource* dataSource, String* dataMember ); [JScript] public static function GetDataMember( dataSource : IListSource, dataMember : String ) : IEnumerable;
Parameters
- dataSource
- An IListSource that contains the data member to retrieve.
- dataMember
- The data member to retrieve.
Return Value
The specified data member from the specified data source, if it exists.
Remarks
This method searches the specified data source for the specified data member. If the dataMember property is a null reference (Nothing in Visual Basic), the first item in the specified data source is returned.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
DesignTimeData Class | DesignTimeData Members | System.Web.UI.Design Namespace
Show: