DataRowExtensions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the extension methods to the DataRow class. This is a static class.
public ref class DataRowExtensions abstract sealed
public static class DataRowExtensions
type DataRowExtensions = class
Public Module DataRowExtensions
- Inheritance
-
DataRowExtensions
The DataSet API has been extended with two new methods of the DataRow class, Field and SetField. You can use these to form Language-Integrated Query (LINQ) expressions and method queries against DataTable objects. They are the recommended methods to use for accessing column values within Language-Integrated Query (LINQ) expressions and method queries. For more information, see Generic Field and SetField Methods.
Field<T>(Data |
Provides strongly-typed access to each of the column values in the specified row. The Field<T>(DataRow, DataColumn, DataRowVersion) method also supports nullable types. |
Field<T>(Data |
Provides strongly-typed access to each of the column values in the specified row. The Field<T>(DataRow, DataColumn) method also supports nullable types. |
Field<T>(Data |
Provides strongly-typed access to each of the column values in the specified row. The Field<T>(DataRow, Int32, DataRowVersion) method also supports nullable types. |
Field<T>(Data |
Provides strongly typed access to each of the column values in the specified row. The Field<T>(DataRow, Int32) method also supports nullable types. |
Field<T>(Data |
Provides strongly-typed access to each of the column values in the specified row. The Field<T>(DataRow, String, DataRowVersion) method also supports nullable types. |
Field<T>(Data |
Provides strongly-typed access to each of the column values in the specified row. The Field<T>(DataRow, String) method also supports nullable types. |
Set |
Sets a new value for the specified column in the DataRow. The SetField<T>(DataRow, DataColumn, T) method also supports nullable types. |
Set |
Sets a new value for the specified column in the DataRow the method is called on. The SetField<T>(DataRow, Int32, T) method also supports nullable types. |
Set |
Sets a new value for the specified column in the DataRow. The SetField<T>(DataRow, String, T) method also supports nullable types. |
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: