T
ExecuteScalar<T>(CommandType,String,Object[]) Method
See Also 
SourceCode.Data Namespace > Dac Class > ExecuteScalar Method : ExecuteScalar<T>(CommandType,String,Object[]) Method



commandType
queryText
parameters

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Overloads Function ExecuteScalar(Of T)( _
   ByVal commandType As CommandType, _
   ByVal queryText As String, _
   ByVal ParamArray parameters() As Object _
) As T
Visual Basic (Usage) Copy Code
Dim instance As Dac
Dim commandType As CommandType
Dim queryText As String
Dim parameters() As Object
Dim value As T
 
value = instance.ExecuteScalar(Of T)(commandType, queryText, parameters)
C#  
public T ExecuteScalar<T>( 
   CommandType commandType,
   string queryText,
   params object[] parameters
)
C++/CLI  
public:
T^ ExecuteScalargeneric<typename T>
( 
   CommandType commandType,
   String^ queryText,
   ... array<Object^>^ parameters
) 

Parameters

commandType
queryText
parameters

Type Parameters

T

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also