ערוך

שתף באמצעות


XamlType.LookupAllAttachableMembers Method

Definition

Returns an enumerable set that contains all attachable properties that are exposed by this XamlType.

protected:
 virtual System::Collections::Generic::IEnumerable<System::Xaml::XamlMember ^> ^ LookupAllAttachableMembers();
protected virtual System.Collections.Generic.IEnumerable<System.Xaml.XamlMember> LookupAllAttachableMembers ();
abstract member LookupAllAttachableMembers : unit -> seq<System.Xaml.XamlMember>
override this.LookupAllAttachableMembers : unit -> seq<System.Xaml.XamlMember>
Protected Overridable Function LookupAllAttachableMembers () As IEnumerable(Of XamlMember)

Returns

An enumerable set that contains zero or more XamlMember values; otherwise, null.

Remarks

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

Although GetAllAttachableMembers returns a generic collection, this Lookup method returns a generic enumerable set.

The default implementation uses the internal CLR reflection. When UnderlyingType is null, the default implementation can use BaseType, if it is available. This behavior calls LookupAllAttachableMembers recursively to attempt to find a valid base type and returns null if no valid base type exists.

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 schema information of a type. A null return should be reserved for cases where information cannot be determined because of lack of type system or reflection support. If a type is valid and reflection or other techniques are available, but a type does not have attachable members, you should instead return an empty IEnumerable<T> set.

Applies to