Bewerken

Share via


TypeDefinition.GetDeclaringType Method

Definition

Returns the enclosing type of a specified nested type.

public:
 System::Reflection::Metadata::TypeDefinitionHandle GetDeclaringType();
public System.Reflection.Metadata.TypeDefinitionHandle GetDeclaringType ();
member this.GetDeclaringType : unit -> System.Reflection.Metadata.TypeDefinitionHandle
Public Function GetDeclaringType () As TypeDefinitionHandle

Returns

The enclosing type of the specified nested type, or a handle a handle whose IsNil property is true if the type is not nested.

Applies to