EnumBuilder.GetProperties(BindingFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre