XamlMember::DeclaringType Property

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:
property XamlType^ DeclaringType {
	XamlType^ 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 nullptr.

Security noteSecurity 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

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft