Click or drag to resize

ExtensionMethodsHasCustomAttribute Method (Type, Type)

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

Parameters

t
Type: SystemType
The type on which attributeType should be checked
attributeType
Type: SystemType
The type of attribute to check on t

Return Value

Type: Boolean
True if t is annotated with attributeType

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