OleDbParameter.ParameterName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the OleDbParameter.
public:
virtual property System::String ^ ParameterName { System::String ^ get(); void set(System::String ^ value); };
public:
property System::String ^ ParameterName { System::String ^ get(); void set(System::String ^ value); };
public override string ParameterName { get; set; }
[System.Data.DataSysDescription("DataParameter_ParameterName")]
public string ParameterName { get; set; }
member this.ParameterName : string with get, set
[<System.Data.DataSysDescription("DataParameter_ParameterName")>]
member this.ParameterName : string with get, set
Public Overrides Property ParameterName As String
Public Property ParameterName As String
Property Value
The name of the OleDbParameter. The default is an empty string ("").
Implements
- Attributes
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈