ValuePattern.Cached 属性

定义

获取此 ValuePattern 中已缓存的 UI 自动化UI Automation 属性值。Gets the cached UI 自动化UI Automation property values for this ValuePattern.

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

属性值

缓存的属性值。The cached property values.

异常

请求的属性不在缓存中。The requested property is not in the cache.

注解

已缓存的属性值之前必须使用来CacheRequest请求。Cached property values must have been previously requested using a CacheRequest. 若要获取当前时间点的属性的值, 请使用Current获取属性。To get the value of a property at the current point in time, get the property by using Current.

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

适用于

另请参阅