IsDefined Method
Collapse the table of content
Expand the table of content

ICustomAttributeProvider.IsDefined Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether one or more instance of attributeType is defined on this member.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

bool IsDefined(
	Type attributeType,
	bool inherit
)

Parameters

attributeType
Type: System.Type
The type of the custom attributes.
inherit
Type: System.Boolean
When true, look up the hierarchy chain for the inherited custom attribute.

Return Value

Type: System.Boolean
true if the attributeType is defined on this member; false otherwise.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft