TypeBuilder::GetProperties Method (BindingFlags)

Returns all the public and non-public properties declared or inherited by this type, as specified.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual array<PropertyInfo^>^ GetProperties(
	BindingFlags bindingAttr
) override

Parameters

bindingAttr
Type: System.Reflection::BindingFlags

This invocation attribute. This must be a bit flag from BindingFlags : InvokeMethod, NonPublic, and so on.

Return Value

Type: array<System.Reflection::PropertyInfo>
Returns an array of PropertyInfo objects representing the public and non-public properties defined on this type if nonPublic is used; otherwise, only the public properties are returned.

Implements

_Type::GetProperties(BindingFlags)
IReflect::GetProperties(BindingFlags)

ExceptionCondition
NotSupportedException

This method is not implemented for incomplete types.

Retrieve the type using Type::GetType or Assembly::GetType and use reflection on the retrieved type.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft