TypeDelegator.GetNestedType(String, BindingFlags) 方法

定义

返回由 name 指定的嵌套类型,并且该嵌套类型是在 bindingAttr 中指定的、由当前 TypeDelegator 表示的类型来声明或继承。Returns a nested type specified by name and in bindingAttr that are declared or inherited by the type represented by the current TypeDelegator.

public:
 override Type ^ GetNestedType(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override Type GetNestedType (string name, System.Reflection.BindingFlags bindingAttr);
override this.GetNestedType : string * System.Reflection.BindingFlags -> Type
Public Overrides Function GetNestedType (name As String, bindingAttr As BindingFlags) As Type

参数

name
String

嵌套类型的名称。The nested type's name.

bindingAttr
BindingFlags

影响执行搜索的方式的位掩码。A bitmask that affects the way in which the search is conducted. 该值是零个或多个来自 BindingFlags 的位标志的组合。The value is a combination of zero or more bit flags from BindingFlags.

返回

表示嵌套类型的 Type 对象。A Type object representing the nested type.

异常

name 参数为 nullThe name parameter is null.

适用于