Windows apps
Collapse the table of content
Expand the table of content
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.

ComAwareEventInfo::IsDefined Method (Type^, Boolean)

.NET Framework (current version)
 

Indicates whether one or more instances of the specified attribute are applied to this member.

Namespace:   System.Runtime.InteropServices
Assembly:  System.Core (in System.Core.dll)

public:
virtual bool IsDefined(
	Type^ attributeType,
	bool inherit
) override

Parameters

attributeType
Type: System::Type^

The attribute type to search for.

inherit
Type: System::Boolean

true to search this member's inheritance chain to find the attributes; otherwise, false.

Return Value

Type: System::Boolean

true if the specified attribute has been applied to this member; otherwise, false.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show:
© 2017 Microsoft