Javax.Xml.Transform.Transformer.SetParameter Method
Add a parameter for the transformation.

Syntax

[Android.Runtime.Register("setParameter", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetParameter_Ljava_lang_String_Ljava_lang_Object_Handler")]
public abstract void SetParameter (string name, Java.Lang.Object value)

Parameters

name
The name of the parameter, which may begin with a namespace URI in curly braces ({}).
value
The value object. This can be any valid Java object. It is up to the processor to provide the proper object coercion or to simply pass the object on for use in an extension.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionIf value is null.

Remarks

Add a parameter for the transformation.

Pass a qualified name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.

For example, if a URI and local name were obtained from an element defined with <xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/>, then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.

[Android Documentation]

Requirements

Namespace: Javax.Xml.Transform
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8