Редагувати

Поділитися через


XamlType.GetAttachableMember(String) Method

Definition

Returns a XamlMember representing a specific named attachable member of this XamlType.

public:
 System::Xaml::XamlMember ^ GetAttachableMember(System::String ^ name);
public System.Xaml.XamlMember GetAttachableMember (string name);
member this.GetAttachableMember : string -> System.Xaml.XamlMember
Public Function GetAttachableMember (name As String) As XamlMember

Parameters

name
String

The name of the attachable member to get, in ownerTypeName.MemberName form.

Returns

A XamlMember object for the requested attachable member; otherwise, null, if no attachable member by that name exists.

Remarks

Calls to this method can invoke LookupAttachableMember overrides on XamlType derived classes.

Important

LookupAttachableMember 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