TypeBuilder.GetProperties(BindingFlags) Metódus

Definíció

A megadott módon visszaadja az ilyen típusú deklarált vagy öröklődő összes nyilvános és nem nyilvános tulajdonságot.

public:
 override cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties(System::Reflection::BindingFlags bindingAttr);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr);
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)>]
override this.GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
override this.GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Overrides Function GetProperties (bindingAttr As BindingFlags) As PropertyInfo()

Paraméterek

bindingAttr
BindingFlags

Ez a meghívási attribútum. Ennek egy bitjelzőnek kell lennie a következőtől BindingFlags : InvokeMethod, NonPublicés így tovább.

Válaszok

Az ilyen típusban PropertyInfo definiált nyilvános és nem nyilvános tulajdonságokat képviselő objektumtömböt nonPublic ad vissza, ellenkező esetben csak a nyilvános tulajdonságok lesznek visszaadva.

Attribútumok

Kivételek

Ez a metódus nem hiányos típusok esetén van implementálva.

Megjegyzések

Kérje le a típust a lekért típussal Type.GetType , vagy Assembly.GetType használja a visszaverődést a beolvasott típuson.

A következőre érvényes: