OracleParameter.ParameterName 属性

定义

获取或设置 OracleParameter 的名称。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

属性值

OracleParameter 的名称。The name of the OracleParameter. 默认值为一个空字符串。The default is an empty string.

实现

示例

下面的示例创建一个 OracleParameter 并设置其一些属性。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";  
}  

注解

用于 Oracle 的 .NET Framework 数据提供程序不支持使用问号(?)标记的位置参数。The .NET Framework Data Provider for Oracle does not support positional parameters that are marked with a question mark (?).

适用于