TypeExtensions.GetField Método
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- 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
Devoluciones
Se aplica a
.NET 10 e outras versións
Produto | Versións |
---|---|
.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 |
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- 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
Devoluciones
Se aplica a
.NET 10 e outras versións
Produto | Versións |
---|---|
.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 con nós en GitHub
A orixe deste contido pódese atopar en GitHub, onde tamén podes crear e revisar problemas e extraer solicitudes. Para obter máis información, consulta a guía para colaboradores.
Comentarios de .NET
.NET é un proxecto de código aberto. Selecciona unha ligazón para ofrecer comentarios: