共用方式為


ParserAdapter.SetProperty(String, Object) Method

Definition

Set a parser property.

[Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetProperty_Ljava_lang_String_Ljava_lang_Object_Handler")]
public virtual 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")>]
abstract member SetProperty : string * Java.Lang.Object -> unit
override this.SetProperty : string * Java.Lang.Object -> unit

Parameters

name
String

The property name.

value
Object

The property value.

Implements

Attributes

Exceptions

If the property value can't be assigned or retrieved.

If the property can't be assigned that value.

Remarks

Set a parser property.

No properties are currently recognized.

Java documentation for org.xml.sax.helpers.ParserAdapter.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

See also

  • <xref:Org.Xml.Sax.IXMLReader.SetProperty(System.String%2c+Java.Lang.Object)>