---
title: "The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects"  
description: "The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects"  
author: "ICSM Computer"  
published: 2025-05-16  
updated: 2025-05-16  
canonical: https://www.mindstick.com/forum/161628/the-sqlparametercollection-only-accepts-non-null-sqlparameter-type-objects-not-sqlparameter-objects  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects

The SqlParameterCollection only accepts non-[null](https://www.mindstick.com/forum/33922/how-to-use-null-coalescing-operator-in-c-sharp) [SqlParameter](https://www.mindstick.com/forum/12652/how-to-set-typename-in-the-constructor-of-new-sqlparameter) type [objects](https://www.mindstick.com/forum/145447/what-are-objects), not SqlParameter objects.


---

Original Source: https://www.mindstick.com/forum/161628/the-sqlparametercollection-only-accepts-non-null-sqlparameter-type-objects-not-sqlparameter-objects

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
