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.StringName of the parameter in the statement.
parameterValue
Type: System.GuidValue of the parameter.
Return Value
Type: System.Data.SqlClient.SqlParameter
The newly created and initialized 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.