TypeBuilder.GetProperties(BindingFlags) TypeBuilder.GetProperties(BindingFlags) TypeBuilder.GetProperties(BindingFlags) TypeBuilder.GetProperties(BindingFlags) Method

Definition

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

public:
 override cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.PropertyInfo[] GetProperties (System.Reflection.BindingFlags bindingAttr);
override this.GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Overrides Function GetProperties (bindingAttr As BindingFlags) As PropertyInfo()

Parameters

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

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

Returns

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.

Exceptions

This method is not implemented for incomplete types.

Remarks

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

Applies to