DataRowExtensionGetString Method |
Extract a string value from the specified column. Note that DBNull values are handled.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string GetString(
this DataRow row,
Enum idx
)
<ExtensionAttribute>
Public Shared Function GetString (
row As DataRow,
idx As Enum
) As String
Parameters
- row
- Type: System.DataDataRow
The data row from which to extract. - idx
- Type: SystemEnum
The 0-based index of the column (which must exist in the row).
Return Value
Type:
StringThe string value or null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataRow. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also