TeamFoundationSqlResourceComponent.BindNullableDateTime Method
This is a helper function that takes care of 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 BindNullableDateTime ( _
parameterName As String, _
parameterValue As Nullable(Of DateTime) _
) As SqlParameter
protected SqlParameter BindNullableDateTime(
string parameterName,
Nullable<DateTime> parameterValue
)
protected:
SqlParameter^ BindNullableDateTime(
String^ parameterName,
Nullable<DateTime> parameterValue
)
member BindNullableDateTime :
parameterName:string *
parameterValue:Nullable<DateTime> -> SqlParameter
protected function BindNullableDateTime(
parameterName : String,
parameterValue : Nullable<DateTime>
) : SqlParameter
Parameters
parameterName
Type: System.StringName of the parameter in the statement
parameterValue
Type: System.Nullable<DateTime>Value of the parameter
Return Value
Type: System.Data.SqlClient.SqlParameter
The newly created and initilized 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.