_Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) _Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) _Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) _Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) Method

Definição

Fornece objetos COM com acesso independente de versão para o método FindMembers(MemberTypes, BindingFlags, MemberFilter, Object).Provides COM objects with version-independent access to the FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) method.

public:
 cli::array <System::Reflection::MemberInfo ^> ^ FindMembers(System::Reflection::MemberTypes memberType, System::Reflection::BindingFlags bindingAttr, System::Reflection::MemberFilter ^ filter, System::Object ^ filterCriteria);
public System.Reflection.MemberInfo[] FindMembers (System.Reflection.MemberTypes memberType, System.Reflection.BindingFlags bindingAttr, System.Reflection.MemberFilter filter, object filterCriteria);
abstract member FindMembers : System.Reflection.MemberTypes * System.Reflection.BindingFlags * System.Reflection.MemberFilter * obj -> System.Reflection.MemberInfo[]
Public Function FindMembers (memberType As MemberTypes, bindingAttr As BindingFlags, filter As MemberFilter, filterCriteria As Object) As MemberInfo()

Parâmetros

memberType
MemberTypes MemberTypes MemberTypes MemberTypes

Um objeto MemberTypes indicando o tipo de membro a ser pesquisado.A MemberTypes object indicating the type of member to search for.

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

Um bitmask composto de um ou mais BindingFlags que especificam como a pesquisa é realizada.A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

- ou --or- Zero, para retornar null.Zero, to return null.

filter
MemberFilter MemberFilter MemberFilter MemberFilter

O delegado que faz as comparações, retornando true se o membro inspecionado no momento corresponder ao filterCriteria. Caso contrário, false.The delegate that does the comparisons, returning true if the member currently being inspected matches the filterCriteria and false otherwise. Use os delegados FilterAttribute, FilterName e FilterNameIgnoreCase fornecidos por essa classe.You can use the FilterAttribute, FilterName, and FilterNameIgnoreCase delegates supplied by this class. O primeiro usa os campos FieldAttributes, MethodAttributes e MethodImplAttributes como critérios de pesquisa e os outros dois delegados usam objetos String como critérios de pesquisa.The first uses the fields of FieldAttributes, MethodAttributes, and MethodImplAttributes as search criteria, and the other two delegates use String objects as the search criteria.

filterCriteria
Object Object Object Object

Os critérios de pesquisa que determinam se um membro é retornado na matriz de objetos MemberInfo.The search criteria that determines whether a member is returned in the array of MemberInfo objects.

Os campos de FieldAttributes, MethodAttributes e MethodImplAttributes podem ser usados em conjunto com o delegado FilterAttribute fornecido por essa classe.The fields of FieldAttributes, MethodAttributes, and MethodImplAttributes can be used in conjunction with the FilterAttribute delegate supplied by this class.

Retornos

Uma matriz filtrada de objetos MemberInfo do tipo de membro especificado.A filtered array of MemberInfo objects of the specified member type.

- ou --or- Uma matriz vazia do tipo MemberInfo, se o Type atual não tiver membros do tipo memberType que correspondem aos critérios de filtro.An empty array of type MemberInfo, if the current Type does not have members of type memberType that match the filter criteria.

Comentários

Este método é para acesso a classes gerenciadas de código não gerenciado e não deve ser chamado em código gerenciado.This method is for access to managed classes from unmanaged code, and should not be called from managed code.

O Type.FindMembers método retorna uma matriz filtrada MemberInfo de objetos do tipo de membro especificado.The Type.FindMembers method returns a filtered array of MemberInfo objects of the specified member type.

Aplica-se a