OracleParameter.ParameterName Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the name of the OracleParameter.

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

public override string ParameterName { get; set; }

Property Value

Type: System.String

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

The .NET Framework Data Provider for Oracle does not support positional parameters that are marked with a question mark (?).

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

public void CreateOracleDbParameter() 
{
   OracleParameter parameter = new OracleParameter();
   parameter.ParameterName = "pDName";
   parameter.DbType = DbType.String;
   parameter.Value = "ENGINEERING";
   parameter.SourceColumn = "DName";
}

.NET Framework
Available since 1.1
Return to top
Show: