Npgsql Api Docs

NpgsqlParameterCollection.TryGetValue Method 

Gets a value indicating whether a NpgsqlParameter with the specified parameter name exists in the collection.

[Visual Basic]
Public Function TryGetValue( _
   ByVal parameterName As String, _
   ByRef parameter As NpgsqlParameter _
) As Boolean
[C#]
public bool TryGetValue(
   string parameterName,
   out NpgsqlParameter parameter
);

Parameters

parameterName
The name of the NpgsqlParameter object to find.
parameter
A reference to the requested parameter is returned in this out param if it is found in the list. This value is null if the parameter is not found.

Return Value

true if the collection contains the parameter and param will contain the parameter; otherwise, false.

See Also

NpgsqlParameterCollection Class | Npgsql Namespace