Aracılığıyla paylaş


Validator.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")]
public virtual void SetProperty (string? name, Java.Lang.Object? object);
[<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, which is a non-null fully-qualified URI.

object
Object

The requested value for the property.

Attributes

Exceptions

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

When the Validator recognizes the property name but cannot set the requested value.

When the name parameter is null.

Remarks

Set the value of a property.

The property name is any fully-qualified URI. It is possible for a Validator to recognize a property name but to be unable to change the current value. Some property values may be immutable or mutable only in specific contexts, such as before, during, or after a validation.

Validators are not required to recognize setting any specific property names.

Java documentation for javax.xml.validation.Validator.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