Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetDeclaredNestedType Method

TypeInfo.GetDeclaredNestedType Method

.NET Framework 4.6 and 4.5

Returns an object that represents the specified public nested type declared by the current type.

Namespace:  System.Reflection
Assemblies:   System.Reflection (in System.Reflection.dll)
  mscorlib (in mscorlib.dll)

public virtual TypeInfo GetDeclaredNestedType(
	string name
)

Parameters

name
Type: System.String

The name of the nested type.

Return Value

Type: System.Reflection.TypeInfo
An object that represents the specified nested type, if found; otherwise, null.

ExceptionCondition
ArgumentNullException

name is null.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft