OleDbParameter.ParameterName OleDbParameter.ParameterName OleDbParameter.ParameterName OleDbParameter.ParameterName Property

Definition

Gets or sets the name of the OleDbParameter.

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

Property Value

The name of the OleDbParameter. The default is an empty string ("").

Implements

Examples

The following example creates an OleDbParameter and sets some of its properties.

Public Sub CreateOleDbParameter()  
    Dim parameter As New OleDbParameter("Description", OleDbType.VarChar, 88)  
    parameter.Direction = ParameterDirection.Output  
End Sub 'CreateOleDbParameter  
public void CreateOleDbParameter()   
 {  
    OleDbParameter parameter = new OleDbParameter("Description", OleDbType.VarChar, 88);  
    parameter.Direction = ParameterDirection.Output;  
 }  

Remarks

The OLE DB .NET Provider uses positional parameters that are marked with a question mark (?) instead of named parameters.

Applies to

See also