IQueryAmbient.IsAmbientPropertyAvailable(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
查询可否将指定的命名属性视为当前范围中的环境属性。
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
要检查其环境状态的属性的名称。
返回
如果所请求的属性可视为环境属性,则为 true
;否则为 false
。
适用于
反馈
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:提交和查看相关反馈