다음을 통해 공유


TeamFoundationSqlResourceComponent.BindNullableGuid Method

A helper function that handles binding GUIDs to their sqlparameters. The value 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)

Syntax

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

Parameters

  • 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

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace