Click or drag to resize

ExtensionMethodsHasCustomAttributeTAttribute Method (Type)

Returns true if t has TAttribute

Namespace:  SanteDB
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static bool HasCustomAttribute<TAttribute>(
	this Type t
)

Parameters

t
Type: SystemType
The type on which the attribute should be checked

Type Parameters

TAttribute
The type of attribute to check for

Return Value

Type: Boolean
True if t is annoted with TAttribute

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also