TypeExtensions.GetField Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
- Origem:
- TypeExtensions.cs
- Origem:
- TypeExtensions.cs
- Origem:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::FieldInfo ^ GetField(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
C#
public static System.Reflection.FieldInfo GetField(this Type type, string name, System.Reflection.BindingFlags bindingAttr);
C#
public static System.Reflection.FieldInfo? GetField(this Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetField : Type * string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
<Extension()>
Public Function GetField (type As Type, name As String, bindingAttr As BindingFlags) As FieldInfo
Parâmetros
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
Retornos
Aplica-se a
.NET 10 e outras versões
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.2 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Origem:
- TypeExtensions.cs
- Origem:
- TypeExtensions.cs
- Origem:
- TypeExtensions.cs
public:
static System::Reflection::FieldInfo ^ GetField(Type ^ type, System::String ^ name);
C#
public static System.Reflection.FieldInfo GetField(Type type, string name);
static member GetField : Type * string -> System.Reflection.FieldInfo
Public Shared Function GetField (type As Type, name As String) As FieldInfo
Parâmetros
- type
- Type
- name
- String
Retornos
Aplica-se a
.NET 10 e outras versões
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.2 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: