IBlob.Truncate(Int64) Method

Definition

Truncates the BLOB value that this Blob object represents to be len bytes in length.

[Android.Runtime.Register("truncate", "(J)V", "GetTruncate_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Truncate (long len);
[<Android.Runtime.Register("truncate", "(J)V", "GetTruncate_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Truncate : int64 -> unit

Parameters

len
Int64

the length, in bytes, to which the BLOB value that this Blob object represents should be truncated

Attributes

Exceptions

if an error occurs accessing the Blob.

Remarks

Truncates the BLOB value that this Blob object represents to be len bytes in length.

<b>Note:</b> If the value specified for pos is greater then the length+1 of the BLOB value then the behavior is undefined. Some JDBC drivers may throw a SQLException while other drivers may support this operation.

Added in 1.4.

Java documentation for java.sql.Blob.truncate(long).

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