Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 override Type ^ GetNestedType(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override Type? GetNestedType (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

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