UtilReflectionGetAllProperties(Type, Boolean, BindingFlags) Method
Gets all the properties declared in the specified Type.
Namespace: DevCase.Core.Diagnostics.Assembly.ReflectionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<PropertyInfo> GetAllProperties(
Type type,
bool includeBaseTypes,
BindingFlags bindingFlags = BindingFlags.DeclaredOnly|BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.NonPublic
)
Public Shared Function GetAllProperties (
type As Type,
includeBaseTypes As Boolean,
Optional bindingFlags As BindingFlags = BindingFlags.DeclaredOnly Or BindingFlags.Instance Or BindingFlags.Static Or BindingFlags.Public Or BindingFlags.NonPublic
) As IEnumerable(Of PropertyInfo)
Dim type As Type
Dim includeBaseTypes As Boolean
Dim bindingFlags As BindingFlags
Dim returnValue As IEnumerable(Of PropertyInfo)
returnValue = UtilReflection.GetAllProperties(type,
includeBaseTypes, bindingFlags)
public:
static IEnumerable<PropertyInfo^>^ GetAllProperties(
Type^ type,
bool includeBaseTypes,
BindingFlags bindingFlags = BindingFlags::DeclaredOnly|BindingFlags::Instance|BindingFlags::Static|BindingFlags::Public|BindingFlags::NonPublic
)
static member GetAllProperties :
type : Type *
includeBaseTypes : bool *
?bindingFlags : BindingFlags
(* Defaults:
let _bindingFlags = defaultArg bindingFlags BindingFlags.DeclaredOnly|BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.NonPublic
*)
-> IEnumerable<PropertyInfo>
No code example is currently available or this language may not be supported.
- type Type
-
The source Type.
- includeBaseTypes Boolean
-
If , the search include properties declared in base types too.
- bindingFlags BindingFlags (Optional)
-
Flags that controls binding and the way in which the search for members and types is conducted by Reflection.
IEnumerablePropertyInfo
A
IEnumerableT collection with all the properties found.
This is a code example.
No code example is currently available or this language may not be supported.
Dim props As IEnumerable(Of PropertyInfo) = GetAllProperties(GetType(Form), includeBaseTypes:=True)
For Each prop As PropertyInfo In props
Console.WriteLine(prop.Name)
Next prop
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.