Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Attribute.IsDefined Method

Determines whether any custom attributes of a specified type are applied to a specified member of a class.

Overload List

Determines whether any custom attributes of a specified type are applied to a specified assembly.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(Assembly, Type) As Boolean
[C#] public static bool IsDefined(Assembly, Type);
[C++] public: static bool IsDefined(Assembly*, Type*);
[JScript] public static function IsDefined(Assembly, Type) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified member of a class or inherited from a base class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(MemberInfo, Type) As Boolean
[C#] public static bool IsDefined(MemberInfo, Type);
[C++] public: static bool IsDefined(MemberInfo*, Type*);
[JScript] public static function IsDefined(MemberInfo, Type) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified module.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(Module, Type) As Boolean
[C#] public static bool IsDefined(Module, Type);
[C++] public: static bool IsDefined(Module*, Type*);
[JScript] public static function IsDefined(Module, Type) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class or inherited from a base class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(ParameterInfo, Type) As Boolean
[C#] public static bool IsDefined(ParameterInfo, Type);
[C++] public: static bool IsDefined(ParameterInfo*, Type*);
[JScript] public static function IsDefined(ParameterInfo, Type) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified assembly.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(Assembly, Type, Boolean) As Boolean
[C#] public static bool IsDefined(Assembly, Type, bool);
[C++] public: static bool IsDefined(Assembly*, Type*, bool);
[JScript] public static function IsDefined(Assembly, Type, Boolean) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified member of a class or optionally inherited from a base class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(MemberInfo, Type, Boolean) As Boolean
[C#] public static bool IsDefined(MemberInfo, Type, bool);
[C++] public: static bool IsDefined(MemberInfo*, Type*, bool);
[JScript] public static function IsDefined(MemberInfo, Type, Boolean) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified module.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(Module, Type, Boolean) As Boolean
[C#] public static bool IsDefined(Module, Type, bool);
[C++] public: static bool IsDefined(Module*, Type*, bool);
[JScript] public static function IsDefined(Module, Type, Boolean) : Boolean;

Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class or optionally inherited from a base class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsDefined(ParameterInfo, Type, Boolean) As Boolean
[C#] public static bool IsDefined(ParameterInfo, Type, bool);
[C++] public: static bool IsDefined(ParameterInfo*, Type*, bool);
[JScript] public static function IsDefined(ParameterInfo, Type, Boolean) : Boolean;

See Also

Attribute Class | Attribute Members | System Namespace

Show:
© 2014 Microsoft