 | ExtensionMethodsHasCustomAttribute(PropertyInfo, Type) Method |
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static bool HasCustomAttribute(
this PropertyInfo p,
Type attributeType
)
<ExtensionAttribute>
Public Shared Function HasCustomAttribute (
p As PropertyInfo,
attributeType As Type
) As Boolean
public:
[ExtensionAttribute]
static bool HasCustomAttribute(
PropertyInfo^ p,
Type^ attributeType
)
[<ExtensionAttribute>]
static member HasCustomAttribute :
p : PropertyInfo *
attributeType : Type -> bool Parameters
- p PropertyInfo
- The type on which attributeType should be checked
- attributeType Type
- The type of attribute to check on p
Return Value
BooleanTrue if
p is annotated with
attributeTypeUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PropertyInfo. 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