GenericTypeParameterBuilder.GetField(String, BindingFlags) 方法
定义
不支持不完整的泛型类型参数。Not supported for incomplete generic type parameters.
public:
override System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.FieldInfo GetField (string name, System.Reflection.BindingFlags bindingAttr);
override this.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Public Overrides Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo
参数
- name
- String
不支持。Not supported.
- bindingAttr
- BindingFlags
不支持。Not supported.
返回
不支持不完整的泛型类型参数。Not supported for incomplete generic type parameters.
例外
在所有情况下。In all cases.
注解
不完整的泛型类型参数不支持此方法。This method is not supported for incomplete generic type parameters. 检索已完成的泛型类型定义的类型参数,并对检索到的类型使用反射。Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.