Android.App.Backup.BackupDataOutput.WriteEntityHeader Method
Mark the beginning of one record in the backup data stream.

Syntax

[Android.Runtime.Register("writeEntityHeader", "(Ljava/lang/String;I)I", "GetWriteEntityHeader_Ljava_lang_String_IHandler")]
public virtual int WriteEntityHeader (string key, int dataSize)

Parameters

key
A string key that uniquely identifies the data record within the application. Keys whose first character is ＀ or higher are not valid.
dataSize
The size in bytes of this record's data. Passing a dataSize of -1 indicates that the record under this key should be deleted.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif the write failed

Remarks

Mark the beginning of one record in the backup data stream. This must be called before BackupDataOutput.WriteEntityData(Byte[], System.Int32).

[Android Documentation]

Requirements

Namespace: Android.App.Backup
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8