XamlMember.IsUnknown 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 a value that indicates whether the member is not resolvable by the backing system that is used for type and member resolution.
public:
property bool IsUnknown { bool get(); };
public bool IsUnknown { get; }
member this.IsUnknown : bool
Public ReadOnly Property IsUnknown As Boolean
Property Value
true
if the member is not resolvable; false
if the member is resolvable.
Remarks
A XamlMember that is constructed with the XamlMember(String, XamlType, Boolean) signature returns true
for IsUnknown.
For a load path that involves XamlObjectWriter, a XamlMember with true
for IsUnknown cannot be written into an object graph. Under the default implementations in .NET Framework XAML Services APIs, the XamlObjectWriter.WriteStartMember call throws a XamlObjectWriterException when the relevant XamlMember reports true
for IsUnknown.
You should not construct a XamlMember that has a value of true
for IsUnknown unless your implementation can handle the exceptions from XamlObjectWriter, or you have other ways to adjust the XamlObjectWriter behavior.
Calling IsUnknown invokes LookupIsUnknown or a specific override of that method.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기