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

定義

查詢是否可以將指定的具名屬性視為目前範圍中的環境屬性。Queries for whether a specified named property can be considered ambient in the current scope.

public:
 bool IsAmbientPropertyAvailable(System::String ^ propertyName);
public bool IsAmbientPropertyAvailable (string propertyName);
abstract member IsAmbientPropertyAvailable : string -> bool
Public Function IsAmbientPropertyAvailable (propertyName As String) As Boolean

參數

propertyName
String String String String

要檢查環境狀態之屬性的名稱。The name of the property to check for ambience state.

傳回

如果可將所要求的屬性視為環境屬性則為 true,否則為 falsetrue if the requested property can be considered ambient; otherwise, false.

適用於