ValuePattern.Current ValuePattern.Current ValuePattern.Current ValuePattern.Current Property

定義

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

屬性值

備註

此模式必須來自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.ValuePatternInformation參閱。For information on the properties available and their use, see ValuePattern.ValuePatternInformation.

適用於

另請參閱