OracleParameter.ParameterName Property

Definition

Gets or sets the name of the OracleParameter.

public:
 property System::String ^ ParameterName { System::String ^ get(); void set(System::String ^ value); };
public:
 virtual property System::String ^ ParameterName { System::String ^ get(); void set(System::String ^ value); };
public string ParameterName { get; set; }
public override string ParameterName { get; set; }
member this.ParameterName : string with get, set
Public Property ParameterName As String
Public Overrides Property ParameterName As String

Property Value

String

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

Implements

Examples

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

Public Sub CreateOracleDbParameter()  
   Dim parameter As New OracleParameter()  
   parameter.ParameterName = "pDName"  
   parameter.DbType = DbType.String  
   parameter.Value = "ENGINEERING"  
   parameter.SourceColumn = "DName"  
End Sub  
public void CreateOracleDbParameter()   
{  
   OracleParameter parameter = new OracleParameter();  
   parameter.ParameterName = "pDName";  
   parameter.DbType = DbType.String;  
   parameter.Value = "ENGINEERING";  
   parameter.SourceColumn = "DName";  
}  

Remarks

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

Applies to