Edit

Share via


TypeDelegator.GetNestedType(String, BindingFlags) Method

Definition

Returns a nested type specified by name and in bindingAttr that are declared or inherited by the type represented by the current TypeDelegator.

C#
public override Type? GetNestedType(string name, System.Reflection.BindingFlags bindingAttr);
C#
public override Type GetNestedType(string name, System.Reflection.BindingFlags bindingAttr);

Parameters

name
String

The nested type's name.

bindingAttr
BindingFlags

A bitmask that affects the way in which the search is conducted. The value is a combination of zero or more bit flags from BindingFlags.

Returns

A Type object representing the nested type.

Exceptions

The name parameter is null.

Applies to