Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
IXmlElement..::.SetAttribute Method
IXmlElement Interface See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Set an attribute value.

Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    void SetAttribute(
    	string name,
    	IXmlValue value
    )

#### Parameters

name
  Type: System..::.String
  The name of the attribute.

value
  Type: Tangosol.Run.Xml..::.IXmlValue
  The new value for the attribute; null indicates that the attribute should be removed.

# Remarks

If the attribute does not already exist, and the new value is non-null, then the attribute is added and its value is set to the passed value. If the attribute does exist, and the new value is non-null, then the attribute's value is updated to the passed value. If the attribute does exist, but the new value is null, then the attribute and its corresponding value are removed.
This is a convenience method. Attributes are accessed and manipulated via the dictionary returned from Attributes.

# See Also

IXmlElement Interface
Tangosol.Run.Xml Namespace