Executes the query and returns the first column of the first row in the resultset returned by the query.
Namespace: System.Extensions.DataAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static string ExecuteString(
this IDbCommand command
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ExecuteString (
command As IDbCommand
) As String |
Visual C++ |
---|
public:
[ExtensionAttribute]
static String^ ExecuteString(
IDbCommand^ command
) |
F# |
---|
static member ExecuteString :
command : IDbCommand -> string
|
Return Value
Type:
StringThe value of the field.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDbCommand. 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