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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기