TypeName.DeclaringType Property
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.
If this type is a nested type (see IsNested), gets
the declaring type. If this type is not a nested type, throws.
public:
property System::Reflection::Metadata::TypeName ^ DeclaringType { System::Reflection::Metadata::TypeName ^ get(); };
public System.Reflection.Metadata.TypeName DeclaringType { get; }
member this.DeclaringType : System.Reflection.Metadata.TypeName
Public ReadOnly Property DeclaringType As TypeName
Property Value
Exceptions
The current type is not a nested type.
Remarks
For example, given "Namespace.Declaring+Nested", this property unwraps the outermost type and returns "Namespace.Declaring".
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.