TypeInfo.GetDeclaredNestedType(String) 方法

定义

返回表示由当前类型声明的指定公共嵌套类型的对象。Returns an object that represents the specified public nested type declared by the current type.

public:
 virtual System::Reflection::TypeInfo ^ GetDeclaredNestedType(System::String ^ name);
public virtual System.Reflection.TypeInfo GetDeclaredNestedType (string name);
abstract member GetDeclaredNestedType : string -> System.Reflection.TypeInfo
override this.GetDeclaredNestedType : string -> System.Reflection.TypeInfo
Public Overridable Function GetDeclaredNestedType (name As String) As TypeInfo

参数

name
String

嵌套类型的名称。The name of the nested type.

返回

如果找到对象,则为表示指定的嵌套类型的对象;否则为 nullAn object that represents the specified nested type, if found; otherwise, null.

异常

namenullname is null.

适用于