다음을 통해 공유


IXmlSerializer.SetProperty(String, Object) Method

Definition

Set the value of a property.

[Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetProperty_Ljava_lang_String_Ljava_lang_Object_Handler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetProperty (string? name, Java.Lang.Object? value);
[<Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetProperty_Ljava_lang_String_Ljava_lang_Object_Handler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetProperty : string * Java.Lang.Object -> unit

Parameters

name
String
value
Object
Attributes

Exceptions

if the property is not supported or can not be set

Remarks

Set the value of a property. (the property name is recommended to be URI for uniqueness). Some well known optional properties are defined in http://www.xmlpull.org/v1/doc/properties.html.

If property is not recognized or can not be set then IllegalStateException MUST be thrown.

Java documentation for org.xmlpull.v1.XmlSerializer.setProperty(java.lang.String, java.lang.Object).

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