Click or drag to resize

IAttributeBearerSetAttribute Method

Sets the attribute with the given attribute name to the given value. If the attribute bearer (type) doesn't have an attribute with this name, a NullReferenceException is thrown.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
void SetAttribute(
	string attrName,
	Object value
)

Parameters

attrName
Type: SystemString
The name of the attribute.
value
Type: SystemObject
The new value for the attribute. It must have the correct type. Otherwise a TargetException is thrown.
See Also