FrameworkElement.IQueryAmbient.IsAmbientPropertyAvailable(String) FrameworkElement.IQueryAmbient.IsAmbientPropertyAvailable(String) FrameworkElement.IQueryAmbient.IsAmbientPropertyAvailable(String) Method

定义

有关此成员的说明,请参见 IsAmbientPropertyAvailable(String) 方法。For a description of this member, see the IsAmbientPropertyAvailable(String) method.

 virtual bool System.Windows.Markup.IQueryAmbient.IsAmbientPropertyAvailable(System::String ^ propertyName) = System::Windows::Markup::IQueryAmbient::IsAmbientPropertyAvailable;
bool IQueryAmbient.IsAmbientPropertyAvailable (string propertyName);
Function IsAmbientPropertyAvailable (propertyName As String) As Boolean Implements IQueryAmbient.IsAmbientPropertyAvailable

参数

propertyName
String String String

请求的环境属性的名称。The name of the requested ambient property.

返回

如果 propertyName 可用,则为 true;否则为 falsetrue if propertyName is available; otherwise, false.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 FrameworkElement 实例被强制转换为 IQueryAmbient 接口时使用。It can be used only when the FrameworkElement instance is cast to an IQueryAmbient interface.

适用于