SelectionItemPattern.Current 属性

定义

获取此 SelectionItemPattern 的当前属性值。Gets the current property values for this SelectionItemPattern.

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

属性值

当前属性值。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.

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

适用于