• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.ActiveDirectory
    • ActiveDirectoryExtensions
    • ActiveDirectoryGlobals
    • AdPropertyAttribute
    • IAdObject
    • IAdObjectFactory
  • Dapplo.ActiveDirectory.Entities
    • Comparisons
    • DistinguishedName
    • Operators
    • Property
    • PropertyComparison
    • Query
    • QueryElement
    • Value
  • Dapplo.ActiveDirectory.Enums
    • AdProperties
    • ClassNames
    • ComputerProperties
    • DistinguishedNameAttributes
    • UserAccountControlFlags
    • UserProperties
  • Dapplo.ActiveDirectory.Extensions
    • AdDateTimeExtensions
    • DirectoryEntryPropertyExtensions
    • EnumExtensions
    • PropertyInfoExtension
  • Dapplo.ActiveDirectory.Finder
    • FinderAddonModule
    • Startup
  • Dapplo.ActiveDirectory.Finder.Configuration
    • IFinderTranslations
  • Dapplo.ActiveDirectory.Finder.Entities
    • IUser
  • Dapplo.ActiveDirectory.Finder.Ui.ViewModels
    • FinderViewModel
  • Dapplo.ActiveDirectory.Finder.Ui.Views
    • FinderView
  • Dapplo.ActiveDirectory.Internal
    • IAdsLargeInteger
    • IADsSecurityDescriptor
    • SimpleDictionaryProxy

Class PropertyInfoExtension

Extensions for PropertyInfo

Inheritance
System.Object
PropertyInfoExtension
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.ActiveDirectory.Extensions
Assembly: Dapplo.ActiveDirectory.dll
Syntax
public static class PropertyInfoExtension

Methods

| Improve this Doc View Source

GetAttribute<TAttribute>(MemberInfo, Boolean, Boolean)

Retrieve an attribute from a property

Declaration
public static TAttribute GetAttribute<TAttribute>(this MemberInfo memberInfo, bool inherit = true, bool includeInterfaces = true)
    where TAttribute : Attribute
Parameters
Type Name Description
System.Reflection.MemberInfo memberInfo

MemberInfo

System.Boolean inherit

bool default true to also check inherit class attributes

System.Boolean includeInterfaces

bool default true if the interfaces of the declaring type also need to be checked

Returns
Type Description
TAttribute

TAttribute or null

Type Parameters
Name Description
TAttribute

Type of the attribute

| Improve this Doc View Source

GetAttributes<TAttribute>(MemberInfo, Boolean, Boolean)

Retrieve attributes from a property

Declaration
public static IEnumerable<TAttribute> GetAttributes<TAttribute>(this MemberInfo memberInfo, bool inherit = true, bool includeInterfaces = true)
    where TAttribute : Attribute
Parameters
Type Name Description
System.Reflection.MemberInfo memberInfo

MemberInfo

System.Boolean inherit

bool default true to also check inherit class attributes

System.Boolean includeInterfaces

bool default true if the interfaces of the declaring type also need to be checked

Returns
Type Description
System.Collections.Generic.IEnumerable<TAttribute>

IEnumerable of TAttribute

Type Parameters
Name Description
TAttribute

Type of the attribute

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © Dapplo