 | 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.libGrAssembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntaxvoid SetAttribute(
string attrName,
Object value
)
Parameters
- attrName String
- The name of the attribute.
- value Object
- The new value for the attribute. It must have the correct type.
Otherwise a TargetException is thrown.
See Also