O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ICustomAttributeProvider

Synopsis

This interface is implemented if an object supports custom attributes. GetCustomAttributes() returns the custom attributes, and IsDefined() returns true if an attribute of a passed System.Type is defined on this member.

public interface ICustomAttributeProvider {
// Public Instance Methods
   public method object[] GetCustomAttributes(bool inherit);  
   public method object[] GetCustomAttributes(
        Type attributeType, bool inherit);  
   public method bool IsDefined(Type attributeType, 
        bool inherit);  
}

Implemented By

Assembly, MemberInfo, Module, ParameterInfo

Returned By

MethodInfo.ReturnTypeCustomAttributes

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required