Method | Description | |
---|---|---|
AddAttribute ( |
Adds a new attribute to a attributes collection or modify an existing attribute. It checks whether a given attribute exists and adds it if its not there. If it is there, then it will add the arguments available in the new attribute but not available in the existing attribute.
|
|
AttributableCodeDomObject ( |
||
FindAttribute ( string attributeName ) : |
This method finds the attribute as specified by attribute parameter. This method initially looks up an internal attribute cache. If the attribute is not found in the cache, it searches for it in the actual object extended by this instance. If the attribute is found, this method adds it to internal cache causing the faster access time in the subsequent requests. |
|
FindAttributes ( string attributeName ) : IEnumerable |
Finds all instances of the attribute with the specified name.
|
|
RemoveAttribute ( |
Removes the attribute from the custom attributes collection of the type.
|
Method | Description | |
---|---|---|
SyncSourceAttributes ( |
|
public AddAttribute ( |
||
attribDecl | ||
return | bool |
public AttributableCodeDomObject ( |
||
extendedObject | ||
return | System |
public FindAttribute ( string attributeName ) : |
||
attributeName | string | |
return |
public FindAttributes ( string attributeName ) : IEnumerable |
||
attributeName | string | Name of the attribute. |
return | IEnumerable |
public RemoveAttribute ( |
||
attribute | The attribute to remove. | |
return | void |