| 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
)
<ExtensionAttribute>
Public Shared Function HasCustomAttribute(Of TAttribute) (
t As Type
) As Boolean
public:
[ExtensionAttribute]
generic<typename TAttribute>
static bool HasCustomAttribute(
Type^ t
)
[<ExtensionAttribute>]
static member HasCustomAttribute :
t : Type -> bool
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:
BooleanTrue if
t is annoted with
TAttributeUsage 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