Delen via


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.String

    Name of the parameter in the statement

Return Value

Type: System.Data.SqlClient.SqlParameter
The newly created and initilized sqlparameter

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace