FrameworkElement.IQueryAmbient.IsAmbientPropertyAvailable(String) Method

Definition

有关此成员的说明,请参见 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);
abstract member System.Windows.Markup.IQueryAmbient.IsAmbientPropertyAvailable : string -> bool
override this.System.Windows.Markup.IQueryAmbient.IsAmbientPropertyAvailable : string -> bool
Function IsAmbientPropertyAvailable (propertyName As String) As Boolean Implements IQueryAmbient.IsAmbientPropertyAvailable

Parameters

propertyName
String

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

Returns

Boolean

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

Implements

Remarks

此成员是显式接口成员实现。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.

Applies to