dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteBlob Class / Clone Method
Example

Clone Method (SQLiteBlob)
Creates a copy of the current SQLiteBlob object.
Syntax
'Declaration
 
Public Function Clone() As Object
 

Return Value

A new SQLiteBlob object.
Remarks
Creates a new SQLiteBlob object with the properties that have the same values as those of the original object. However, changing properties of the new object has no influence on the values of the same properties of the original object.
Example
In this example a SQLiteBlob instance is created and being written a byte (14 in decimal). Then it is cloned, and the second SQLiteBlob object returns its first byte of data stream (again, 14 in decimal).
public void CloneSQLiteBlob()
{
  SQLiteBlob myBlob = new SQLiteBlob();
  myBlob.WriteByte(14);
  SQLiteBlob myBlob2 = (SQLiteBlob)myBlob.Clone();
  myBlob2.Seek(0,System.IO.SeekOrigin.Begin);
  Console.WriteLine(myBlob2.ReadByte());
}
Public Sub CloneSQLiteBlob()
  Dim myBlob As SQLiteBlob = New SQLiteBlob
  myBlob.WriteByte(14)
  Dim myBlob2 As SQLiteBlob = CType(myBlob.Clone(), SQLiteBlob)
  myBlob2.Seek(0, System.IO.SeekOrigin.Begin)
  Console.WriteLine(myBlob2.ReadByte())
End Sub
See Also