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.

适用于