XamlType.LookupAllAttachableMembers Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected virtual IEnumerable<XamlMember> LookupAllAttachableMembers()

Return Value

Type: System.Collections.Generic.IEnumerable<XamlMember>

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

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.

.NET Framework
Available since 4.0
Return to top