次の方法で共有


IStatement.SetEscapeProcessing(Boolean) Method

Definition

Sets escape processing on or off.

[Android.Runtime.Register("setEscapeProcessing", "(Z)V", "GetSetEscapeProcessing_ZHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetEscapeProcessing (bool enable);
[<Android.Runtime.Register("setEscapeProcessing", "(Z)V", "GetSetEscapeProcessing_ZHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetEscapeProcessing : bool -> unit

Parameters

enable
Boolean

true to enable escape processing; false to disable it

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets escape processing on or off. If escape scanning is on (the default), the driver will do escape substitution before sending the SQL statement to the database.

Note: Since prepared statements have usually been parsed prior to making this call, disabling escape processing for PreparedStatements objects will have no effect.

Java documentation for java.sql.Statement.setEscapeProcessing(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to