DataRowExtensions Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines the extension methods to the DataRow class. This is a static class.

Namespace:   System.Data
Assembly:  System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)

System.Object
  System.Data.DataRowExtensions

[<AbstractClass>]
[<Sealed>]
type DataRowExtensions = class end

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, DataColumn)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, DataColumn, DataRowVersion)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, Int32)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, Int32, DataRowVersion)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, String)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticField<'T>(DataRow, String, DataRowVersion)

Provides strongly-typed access to each of the column values in the specified row. The Field<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticSetField<'T>(DataRow, DataColumn, 'T)

Sets a new value for the specified column in the DataRow. The SetField<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticSetField<'T>(DataRow, Int32, 'T)

Sets a new value for the specified column in the DataRow the method is called on. The SetField<'T> method also supports nullable types.

System_CAPS_pubmethodSystem_CAPS_staticSetField<'T>(DataRow, String, 'T)

Sets a new value for the specified column in the DataRow. The SetField<'T> method also supports nullable types.

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 (LINQ to DataSet).

.NET Framework
Available since 3.5

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

Return to top
Show: