_Type.GetMember Método

Definição

Fornece objetos COM com acesso independente de versão para o método GetMember.Provides COM objects with version-independent access to the GetMember method.

Sobrecargas

GetMember(String)

Fornece objetos COM com acesso independente de versão para o método GetMember(String).Provides COM objects with version-independent access to the GetMember(String) method.

GetMember(String, BindingFlags)

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

GetMember(String, MemberTypes, BindingFlags)

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

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.GetMember método obtém os membros especificados do atual Type .The Type.GetMember method gets the specified members of the current Type.

GetMember(String)

Fornece objetos COM com acesso independente de versão para o método GetMember(String).Provides COM objects with version-independent access to the GetMember(String) method.

public:
 cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name);
public System.Reflection.MemberInfo[] GetMember (string name);
abstract member GetMember : string -> System.Reflection.MemberInfo[]
Public Function GetMember (name As String) As MemberInfo()

Parâmetros

name
String

A String que contém o nome dos membros públicos a serem obtidos.The String containing the name of the public members to get.

Retornos

MemberInfo[]

Uma matriz de objetos MemberInfo que representa os membros públicos com o nome especificado, se encontrado; caso contrário, uma matriz vazia.An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.

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.GetMember método procura os membros públicos com o nome especificado.The Type.GetMember method searches for the public members with the specified name.

Aplica-se a

GetMember(String, BindingFlags)

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

public:
 cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMember : string * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Function GetMember (name As String, bindingAttr As BindingFlags) As MemberInfo()

Parâmetros

name
String

A String que contém o nome dos membros a serem obtidos.The String containing the name of the members to get.

bindingAttr
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 uma matriz vazia.Zero, to return an empty array.

Retornos

MemberInfo[]

Uma matriz de objetos MemberInfo que representa os membros públicos com o nome especificado, se encontrado; caso contrário, uma matriz vazia.An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.

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.GetMember método procura os membros especificados, usando as restrições de associação especificadas.The Type.GetMember method searches for the specified members, using the specified binding constraints.

Aplica-se a

GetMember(String, MemberTypes, BindingFlags)

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

public:
 cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name, System::Reflection::MemberTypes type, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr);
abstract member GetMember : string * System.Reflection.MemberTypes * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Function GetMember (name As String, type As MemberTypes, bindingAttr As BindingFlags) As MemberInfo()

Parâmetros

name
String

A String que contém o nome dos membros a serem obtidos.The String containing the name of the members to get.

type
MemberTypes

O valor MemberTypes a ser pesquisado.The MemberTypes value to search for.

bindingAttr
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 uma matriz vazia.Zero, to return an empty array.

Retornos

MemberInfo[]

Uma matriz de objetos MemberInfo que representa os membros públicos com o nome especificado, se encontrado; caso contrário, uma matriz vazia.An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.

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.GetMember método procura os membros especificados do tipo de membro especificado, usando as restrições de associação especificadas.The Type.GetMember method searches for the specified members of the specified member type, using the specified binding constraints.

Aplica-se a