Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OracleClientFactory::CreateParameter Method

Returns a strongly typed DbParameter instance.

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

public:
virtual DbParameter^ CreateParameter() override

Return Value

Type: System.Data.Common::DbParameter
A new strongly typed instance of DbParameter.

The following code fragment returns a strongly typed DbParameter instance.

[Visual Basic]

Dim newFactory As OracleClientFactory = OracleClientFactory.Instance
Dim parameter As DbParameter = newFactory.CreateParameter()

[C#]

OracleClientFactory newFactory = OracleClientFactory.Instance;
DbParameter parameter = newFactory.CreateParameter();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft