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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.