Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XamlMember.DeclaringType Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public XamlType DeclaringType { get; }

Property Value

Type: System.Xaml.XamlType

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

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

System_CAPS_security Security Note

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.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft