Επεξεργασία

Κοινή χρήση μέσω


XamlType.LookupAliasedProperty(XamlDirective) Method

Definition

Returns the XAML member that is aliased to a XAML directive by this XamlType.

protected:
 virtual System::Xaml::XamlMember ^ LookupAliasedProperty(System::Xaml::XamlDirective ^ directive);
protected virtual System.Xaml.XamlMember LookupAliasedProperty (System.Xaml.XamlDirective directive);
abstract member LookupAliasedProperty : System.Xaml.XamlDirective -> System.Xaml.XamlMember
override this.LookupAliasedProperty : System.Xaml.XamlDirective -> System.Xaml.XamlMember
Protected Overridable Function LookupAliasedProperty (directive As XamlDirective) As XamlMember

Parameters

directive
XamlDirective

The directive for which to find the aliased member.

Returns

The aliased member, if found; otherwise, null.

Remarks

This method can be invoked when a caller gets a value from GetAliasedProperty.

The default implementation can return results for the following XAML directives: Key; Name; Uid; and xml:lang. Values for these depend on underlying reflection and might still return null if no aliased property is found.

Override this method if you are not relying on default internal CLR reflection and are using metadata or other techniques for reporting the XAML type system information or the schema information of a type.

Applies to

See also