TypeName.DeclaringType Proprietà

Definizione

Se questo tipo è un tipo annidato (vedere IsNested), ottiene

tipo dichiarante. Se questo tipo non è un tipo annidato, genera un'eccezione.

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

Valore della proprietà

Eccezioni

Il tipo corrente non è un tipo annidato.

Commenti

Ad esempio, dato "Namespace.Declaring+Nested", questa proprietà annulla il wrapping del tipo più esterno e restituisce "Namespace.Declaring".

Si applica a