SqlParameter::ParameterName Property

 

Gets or sets the name of the SqlParameter.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public:
property String^ ParameterName {
	virtual String^ get() override;
	virtual void set(String^ value) override;
}

Property Value

Type: System::String^

The name of the SqlParameter. The default is an empty string.

The ParameterName is specified in the form @paramname. You must set ParameterName before executing a SqlCommand that relies on parameters.

The following example creates a SqlParameter and sets some of its properties.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: