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

要求之環境屬性 (Ambient Property) 的名稱。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