IBlob.Position Method
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.
Overloads
Position(IBlob, Int64) |
Retrieves the byte position in the |
Position(Byte[], Int64) |
Retrieves the byte position at which the specified byte array
|
Position(IBlob, Int64)
Retrieves the byte position in the BLOB
value
designated by this Blob
object at which
pattern
begins.
[Android.Runtime.Register("position", "(Ljava/sql/Blob;J)J", "GetPosition_Ljava_sql_Blob_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long Position (Java.Sql.IBlob? pattern, long start);
[<Android.Runtime.Register("position", "(Ljava/sql/Blob;J)J", "GetPosition_Ljava_sql_Blob_JHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Position : Java.Sql.IBlob * int64 -> int64
Parameters
- pattern
- IBlob
the Blob
object designating
the BLOB
value for which to search
- start
- Int64
the position in the BLOB
value
at which to begin searching; the first position is 1
Returns
the position at which the pattern begins, else -1
- Attributes
Exceptions
if an error occurs accessing the Blob
.
Remarks
Retrieves the byte position in the BLOB
value designated by this Blob
object at which pattern
begins. The search begins at position start
.
Added in 1.2.
Java documentation for java.sql.Blob.position(java.sql.Blob, 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
Position(Byte[], Int64)
Retrieves the byte position at which the specified byte array
pattern
begins within the BLOB
value that this Blob
object represents.
[Android.Runtime.Register("position", "([BJ)J", "GetPosition_arrayBJHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long Position (byte[]? pattern, long start);
[<Android.Runtime.Register("position", "([BJ)J", "GetPosition_arrayBJHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Position : byte[] * int64 -> int64
Parameters
- pattern
- Byte[]
the byte array for which to search
- start
- Int64
the position at which to begin searching; the first position is 1
Returns
the position at which the pattern appears, else -1
- Attributes
Exceptions
if an error occurs accessing the Blob
.
Remarks
Retrieves the byte position at which the specified byte array pattern
begins within the BLOB
value that this Blob
object represents. The search for pattern
begins at position start
.
Added in 1.2.
Java documentation for java.sql.Blob.position(byte[], 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.