Properties.Save(Stream, String) Method

Definition

Caution

deprecated

Calls the store(OutputStream out, String comments) method and suppresses IOExceptions that were thrown.

[Android.Runtime.Register("save", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "GetSave_Ljava_io_OutputStream_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual void Save (System.IO.Stream? out, string? comments);
[<Android.Runtime.Register("save", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "GetSave_Ljava_io_OutputStream_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member Save : System.IO.Stream * string -> unit
override this.Save : System.IO.Stream * string -> unit

Parameters

out
Stream

an output stream.

comments
String

a description of the property list.

Attributes

Exceptions

if the key or value of a mapping is not a String.

Remarks

Calls the store(OutputStream out, String comments) method and suppresses IOExceptions that were thrown.

This member is deprecated. This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the store(OutputStream out, String comments) method or the storeToXML(OutputStream os, String comment) method.

Java documentation for java.util.Properties.save(java.io.OutputStream, java.lang.String).

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