XamlType.LookupIsAmbient Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

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

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
Available since 4.0
Return to top
Show: