Method AddAttribute
AddAttribute(ISyntaxAttribute)
Adds specified attribute to the attribute collection.
public virtual int AddAttribute(ISyntaxAttribute attr)
Parameters
attr
ISyntaxAttributeSpecifies
ISyntaxAttribute
to add.
Returns
- int
Index of added attribute in the attribute collection.
AddAttribute()
Creates a new ISyntaxAttribute
and adds it to the attribute collection.
public virtual ISyntaxAttribute AddAttribute()
Returns
- ISyntaxAttribute
ISyntaxAttribute
that is added.