XamlMember.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.
Gets the XamlType for the type that declares the member that is associated with this XamlMember.
public:
property System::Xaml::XamlType ^ DeclaringType { System::Xaml::XamlType ^ get(); };
public System.Xaml.XamlType DeclaringType { get; }
member this.DeclaringType : System.Xaml.XamlType
Public ReadOnly Property DeclaringType As XamlType
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
.
Important
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기