TeamFoundationSqlResourceComponent.BindNullableGuid Method

A helper function that handles binding GUIDs to their [sqlparameters]. The value [Guid.Empty] is considered NULL and a NULL is bound to the given parameter.

Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)


Protected Function BindNullableGuid ( _
    parameterName As String, _
    parameterValue As Guid _
) As SqlParameter
protected SqlParameter BindNullableGuid(
    string parameterName,
    Guid parameterValue
SqlParameter^ BindNullableGuid(
    String^ parameterName, 
    Guid parameterValue
member BindNullableGuid : 
        parameterName:string * 
        parameterValue:Guid -> SqlParameter
protected function BindNullableGuid(
    parameterName : String, 
    parameterValue : Guid
) : SqlParameter


  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: System.Guid

    Value of the parameter.

Return Value

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

.NET Framework Security

See Also


TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace