IQueryAmbient.IsAmbientPropertyAvailable Method

Application::IQueryAmbient::IsAmbientPropertyAvailable Method (String^)

.NET Framework 4.6 and 4.5

Queries for whether a specified ambient property is available in the current scope.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

virtual bool IsAmbientPropertyAvailable(
	String^ propertyName
) sealed = IQueryAmbient::IsAmbientPropertyAvailable


Type: System::String^

The name of the requested ambient property.

Return Value

Type: System::Boolean

true if the requested ambient property is available; otherwise, false.

This member is an explicit interface member implementation. It can be used only when the Application instance is cast to an IQueryAmbient interface.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft