XamlMember.DeclaringType Property

Definition

Gets the XamlType for the type that declares the member that is associated with this XamlMember.

C#
public System.Xaml.XamlType DeclaringType { get; }

Property Value

The XamlType for the type that declares the member that is associated with this XamlMember.

Remarks

This value is typically set during initialization and is usually not null.

Dôležité

DeclaringType information can be passed in by constructors for initialization. By calling directly into base constructors, initialization for XamlMember derived classes can omit some of the value-checks that are made in the base class. Therefore, the derived initialization can change the reported type-member relationship information of a XAML member so that it no longer aligns in an expected way with the type system information of its underlying CLR declaration. For any security-critical checks of declaring type information, use the underlying CLR type instead.

Applies to

Produkt Verzie
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10