IElement.SetIdAttributeNode(IAttr, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If the parameter isId
is true
, this method
declares the specified attribute to be a user-determined ID attribute
.
[Android.Runtime.Register("setIdAttributeNode", "(Lorg/w3c/dom/Attr;Z)V", "GetSetIdAttributeNode_Lorg_w3c_dom_Attr_ZHandler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetIdAttributeNode (Org.W3c.Dom.IAttr? idAttr, bool isId);
[<Android.Runtime.Register("setIdAttributeNode", "(Lorg/w3c/dom/Attr;Z)V", "GetSetIdAttributeNode_Lorg_w3c_dom_Attr_ZHandler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetIdAttributeNode : Org.W3c.Dom.IAttr * bool -> unit
Parameters
- idAttr
- IAttr
The attribute node.
- isId
- Boolean
Whether the attribute is a of type ID.
- Attributes
Exceptions
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if the specified node is not an attribute
of this element.
Remarks
If the parameter isId
is true
, this method declares the specified attribute to be a user-determined ID attribute . This affects the value of Attr.isId
and the behavior of Document.getElementById
, but does not change any schema that may be in use, in particular this does not affect the Attr.schemaTypeInfo
of the specified Attr
node. Use the value false
for the parameter isId
to undeclare an attribute for being a user-determined ID attribute.
Added in DOM Level 3.
Java documentation for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)
.
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.