ValuePattern.Current 属性

定义

获取此 ValuePattern 的当前 UI 自动化UI Automation 属性值。Gets the current UI 自动化UI Automation property values for this ValuePattern.

public:
 property System::Windows::Automation::ValuePattern::ValuePatternInformation Current { System::Windows::Automation::ValuePattern::ValuePatternInformation get(); };
public System.Windows.Automation.ValuePattern.ValuePatternInformation Current { get; }
member this.Current : System.Windows.Automation.ValuePattern.ValuePatternInformation
Public ReadOnly Property Current As ValuePattern.ValuePatternInformation

属性值

当前属性值。The current property values.

注解

此模式必须来自AutomationElement Full具有引用的, 才能获取当前值。This pattern must be from an AutomationElement with an Full reference in order to get current values. 如果是AutomationElement使用None获取的, 则它只包含缓存的数据, 并且尝试获取任何属性的当前值会引发异常。If the AutomationElement was obtained using None, it contains only cached data, and attempting to get the current value of any property raises an exception. 使用Cached获取以前CacheRequest使用指定的属性的已缓存值。Use Cached to get the cached value of a property that was previously specified using a CacheRequest.

有关可用属性及其用法的信息, 请参阅ValuePattern.ValuePatternInformationFor information on the properties available and their use, see ValuePattern.ValuePatternInformation.

适用于

另请参阅