Share via


ZipOutputStream.SetComment(String) Method

Definition

Sets the ZIP file comment.

[Android.Runtime.Register("setComment", "(Ljava/lang/String;)V", "GetSetComment_Ljava_lang_String_Handler")]
public virtual void SetComment (string? comment);
[<Android.Runtime.Register("setComment", "(Ljava/lang/String;)V", "GetSetComment_Ljava_lang_String_Handler")>]
abstract member SetComment : string -> unit
override this.SetComment : string -> unit

Parameters

comment
String

the comment string

Attributes

Exceptions

if the comment is >= 64 Ki encoded bytes.

Remarks

Sets the ZIP file comment.

Java documentation for java.util.zip.ZipOutputStream.setComment(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