TypeBuilder.GetProperties(BindingFlags) Metoda

Definice

Vrátí všechny veřejné a neveřejné vlastnosti deklarované nebo zděděné tímto typem, jak je uvedeno.

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()

Parametry

bindingAttr
BindingFlags

Tento atribut vyvolání. Musí to být trochu příznak z BindingFlags : InvokeMethod, NonPublica tak dále.

Návraty

Vrátí pole PropertyInfo objektů představujících veřejné a neveřejné vlastnosti definované pro tento typ, pokud nonPublic se používá. V opačném případě se vrátí pouze veřejné vlastnosti.

Atributy

Výjimky

Tato metoda není implementována pro neúplné typy.

Poznámky

Načtěte typ pomocí Type.GetType nebo Assembly.GetType použijte reflexi načteného typu.

Platí pro