Breyta

Deila með


EnumBuilder.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

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 currently supported in types that are not complete.

Remarks

As a workaround, to retrieve the properties of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Applies to