Summary
Gets a custom attribute from the specified assembly.
Syntax
[Function("get-attribute-property")]
public static string GetAttributeProperty(Assembly assembly, string attributeAssemblyPath, string attributeTypeName, string propertyName)
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
Name |
Type |
Description |
assembly |
Assembly |
The assembly from which to get the custom attribute. |
attributeAssemblyPath |
string |
The assembly which contains the custom attribute type. |
attributeTypeName |
string |
The name of the custom attribute type. |
propertyName |
string |
The name of the property to retrieve from the custom attribute instance. |
Return Value
Type |
Description |
string |
The specified property from the custom attribute, as a string. |