UITechnologyElement.CacheProperties Method

Caches all the common properties of this element for future use.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public MustOverride Sub CacheProperties
public abstract void CacheProperties()
public:
virtual void CacheProperties() abstract
abstract CacheProperties : unit -> unit 
public abstract function CacheProperties()

Remarks

Caching guarantees that that these properties can be used later, even when the underlying UI control no longer exists. This typically includes properties such as Name, ClassName, ControlTypeName, QueryId, and other properties that are used in the identification string.

.NET Framework Security

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

Name

ClassName

ControlTypeName

QueryId