TeamFoundationSqlResourceComponent.BindDateTime Method
A helper function that handles binding a date/time value to a [sqlparameter].
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Function BindDateTime ( _
parameterName As String, _
parameterValue As DateTime _
) As SqlParameter
protected SqlParameter BindDateTime(
string parameterName,
DateTime parameterValue
)
protected:
SqlParameter^ BindDateTime(
String^ parameterName,
DateTime parameterValue
)
member BindDateTime :
parameterName:string *
parameterValue:DateTime -> SqlParameter
protected function BindDateTime(
parameterName : String,
parameterValue : DateTime
) : SqlParameter
Parameters
parameterName
Type: System.StringName of the parameter in the statement.
parameterValue
Type: System.DateTimeValue of the parameter.
Return Value
Type: System.Data.SqlClient.SqlParameter
The newly created and initialized [sqlparameter].
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.