Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

BaseCacheAdvice.GetCustomAttribute Method

Retrieves custom attribute for the specified attribute type.

[Visual Basic]
Protected Shared Sub GetCustomAttribute( _
   ByVal method As MethodInfo, _
   ByVal attributeType As Type _
)
[C#]
protected static object GetCustomAttribute(
   MethodInfo method,
   Type attributeType
);

Parameters

method
Method to get attribute from.
attributeType
Attribute type.

Return Value

Attribute instance if one is found, null otherwise.

See Also

BaseCacheAdvice Class | Spring.Aspects.Cache Namespace