Export (0) Print
Expand All

EnumBuilder.GetNestedType Method

Returns the specified nested type that is declared by this type.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override Type GetNestedType(
	string name,
	BindingFlags bindingAttr
)

Parameters

name
Type: System.String
The String containing the name of the nested type to get.
bindingAttr
Type: System.Reflection.BindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.
-or-
Zero, to conduct a case-sensitive search for public methods.

Return Value

Type: System.Type
A Type object representing the nested type that matches the specified requirements, if found; otherwise, null.

ExceptionCondition
NotSupportedException

This method is not currently supported in types that are not complete.

As a workaround, to retrieve the nested type of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft