ObjectParameter::Name Property
.NET Framework (current version)
Gets the parameter name, which can only be set through a constructor.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Property Value
Type: System::String^The parameter name, which can only be set through a constructor.
When instantiated, the parameter name cannot be changed. The parameter value can be set or changed through the Value property. After the query has been compiled, the value cannot be changed. For more information, see Query Builder Methods.
The example in this topic is based on the AdventureWorks Sales Model. The example adds new parameters to the collection. It iterates through the ObjectParameterCollection and displays the name, type, and value of each parameter in the collection.
.NET Framework
Available since 3.5
Available since 3.5
Show: