EnumBuilder.GetNestedTypes(BindingFlags) Método

Definição

Retorna os tipos aninhados públicos e não públicos que são declarados ou herdados por esse tipo.Returns the public and non-public nested types that are declared or inherited by this type.

public:
 override cli::array <Type ^> ^ GetNestedTypes(System::Reflection::BindingFlags bindingAttr);
public override Type[] GetNestedTypes (System.Reflection.BindingFlags bindingAttr);
override this.GetNestedTypes : System.Reflection.BindingFlags -> Type[]
Public Overrides Function GetNestedTypes (bindingAttr As BindingFlags) As Type()

Parâmetros

bindingAttr
BindingFlags

Esse deve ser um sinalizador de bit de BindingFlags, tal como InvokeMethod, NonPublic e assim por diante.This must be a bit flag from BindingFlags, such as InvokeMethod, NonPublic, and so on.

Retornos

Type[]

Uma matriz de objetos Type que representa todos os tipos aninhados no Type atual que correspondem às restrições de associação especificadas.An array of Type objects representing all the types nested within the current Type that match the specified binding constraints.

Uma matriz vazia do tipo Type se nenhum tipo estiver aninhado no Type atual ou se nenhum dos tipos aninhados corresponderem às restrições de associação.An empty array of type Type, if no types are nested within the current Type, or if none of the nested types match the binding constraints.

Exceções

Atualmente, esse método não tem suporte em tipos que não estão completos.This method is not currently supported in types that are not complete.

Comentários

Como alternativa, para recuperar os tipos aninhados de um tipo concluído, recupere o tipo usando Type.GetType ou Assembly.GetType e use reflexão no tipo recuperado.As a workaround, to retrieve the nested types of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Aplica-se a