XamlType.LookupIsAmbient Method

.NET Framework 4.6 and 4.5

Returns a value that indicates whether this XamlType represents an ambient type, as per the XAML definition.

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

protected virtual bool LookupIsAmbient()

Return Value

Type: System.Boolean
true if this XamlType represents an ambient type; otherwise, false.

This method can be invoked by calls to IsAmbient.

The default implementation uses CLR reflection on the UnderlyingType and can check the base types. This implementation checks for the AmbientAttribute that is applied to the relevant type's definition at the class level and returns true in this case. All other cases return false.

Override this method if you want IsAmbient to return a different value than is enabled by default internal reflection.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft