Below is my code
Dim myCmd As SqlCommand
myCmd = New SqlCommand("Update tbl SET Name = @Name, Age=@Age where Id=3", GetConnection())
myCmd.Parameters.AddWithValue("@Name", "Charles")
myCmd.Parameters.AddWithValue("@Age", 55)
After few lines I want to read the Parameter Value that is assigned, but I am getting error
Dim str as string = myCmd.Parameters("@Name").Value
Error is
Message: Overload resolution failed because no accessible 'Parameters' accepts this number of arguments. DEBUG MODE
Please help to resolve the issue