Freigeben über


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

    Name of the parameter in the statement.

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace