Java.Util.Properties.StoreToXML Method
Writes all properties stored in this instance into the OutputStream in XML representation.

Syntax

[Android.Runtime.Register("storeToXML", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "GetStoreToXML_Ljava_io_OutputStream_Ljava_lang_String_Handler")]
public virtual void StoreToXML (System.IO.Stream os, string comment)

Parameters

os
the OutputStream to write to.
comment
the comment to add. If null, no comment is added.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs during writing to the output.

Remarks

Writes all properties stored in this instance into the OutputStream in XML representation. The DOCTYPE is

xml Example

 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
 
If the comment is null, no comment is added to the output. UTF-8 is used as the encoding. The OutputStream is not closed at the end. A call to this method is the same as a call to storeToXML(os, comment, "UTF-8").

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1