XamlType.LookupMember(String, Boolean) Method
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.
Returns the XamlMember for a specific named member from this XamlType.
protected:
virtual System::Xaml::XamlMember ^ LookupMember(System::String ^ name, bool skipReadOnlyCheck);
protected virtual System.Xaml.XamlMember LookupMember(string name, bool skipReadOnlyCheck);
abstract member LookupMember : string * bool -> System.Xaml.XamlMember
override this.LookupMember : string * bool -> System.Xaml.XamlMember
Protected Overridable Function LookupMember (name As String, skipReadOnlyCheck As Boolean) As XamlMember
- name
- String
The name of the member to get (as a string).
- skipReadOnlyCheck
- Boolean
true
to return a member even if that member has a true
value for IsReadOnly; false
to not return a IsReadOnly member. The default is false
.
The XamlMember information for the member, if a member was found; otherwise, null
.
This method can be invoked by calls to GetMember.
The default implementation returns a XamlType based on internal CLR reflection and evaluation against the schema context.
Override this method if you want GetMember to use different logic.
Important
LookupMember is virtual, and therefore, can be overridden. The override has the potential (whether for malicious purposes or otherwise) to change the reported members of a XAML type so that they no longer align in an expected way with the TypeDescriptor Get*
information about the underlying CLR type. For any security-critical checks of member reporting, use the underlying CLR type instead.
Product | Versions |
---|---|
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: