Uređivanje

Dijeli putem


XamlType.LookupMember(String, Boolean) Method

Definition

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

Parameters

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.

Returns

The XamlMember information for the member, if a member was found; otherwise, null.

Remarks

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.

Applies to