OracleCommand.Prepare Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a prepared (or compiled) version of the command at the data source.

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

override Prepare : unit -> unit

Exception Condition
InvalidOperationException

The Connection is not set.

-or-

The Connection is not Open.

Before you call Prepare, specify the data type of each parameter in the statement to be prepared.

.NET Framework
Available since 1.1
Return to top
Show: