TypeDefinition.GetDeclaringType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.