Share via


SelectionItemPattern.Current 屬性

定義

取得這個 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

屬性值

SelectionItemPattern.SelectionItemPatternInformation

目前的屬性值。

備註

此模式必須來自 AutomationElement 具有參考的 Full ,才能取得目前的值。 AutomationElement如果使用 取得 None ,則它只包含快取的資料,而嘗試取得任何屬性的目前值會引發例外狀況。 使用 Cached 取得先前使用 CacheRequest 指定之屬性的快取值。

如需可用屬性及其使用方式的詳細資訊,請參閱 SelectionItemPattern.SelectionItemPatternInformation

適用於