Partager via


UITestPropertyProvider Class

Provides an abstract base class for implementing custom support for providing properties for user interface (UI) test controls.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assemblies:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public MustInherit Class UITestPropertyProvider
[CLSCompliantAttribute(true)]
public abstract class UITestPropertyProvider
[CLSCompliantAttribute(true)]
public ref class UITestPropertyProvider abstract
[<AbstractClass>]
[<CLSCompliantAttribute(true)>]
type UITestPropertyProvider =  class end
public abstract class UITestPropertyProvider

The UITestPropertyProvider type exposes the following members.

Constructors

  Name Description
Protected method UITestPropertyProvider Infrastructure. Initializes a new instance of the UITestPropertyProvider class.

Top

Properties

  Name Description
Protected property IsGetProperty Infrastructure. Gets or sets a value that indicates whether the current call to the associated property is a get call or a set call.
Protected property PropertyName Infrastructure. Gets or sets the name of the associated property.
Protected property UIControl Gets or sets the associated user interface testing control.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetControlSupportLevel When overridden in a derived class, returns a value that indicates the support level of this provider for the given control.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPredefinedSearchProperties When overridden in a derived class, gets a string array containing the search properties that are predefined for the associated control.
Public method GetPropertyDescriptor Returns the property descriptor for the specified property of the given control.
Public method GetPropertyForAction When overridden in a derived class, returns the name of the property that is used by the specified action on the given control.
Public method GetPropertyForControlState When overridden in a derived class, returns an array of property names and an array of all state values for the given control that match the specified control state value.
Public method GetPropertyNames When overridden in a derived class, returns a collection of property names in the given control.
Public method GetPropertyNamesClassType When overridden in a derived class, returns the Type for the class that provides the property names for the given control.
Public method GetPropertyValue When overridden in a derived class, returns the value of the specified property from the given control.
Public method GetSpecializedClass When overridden in a derived class, returns the Type for the corresponding specialized control (for HTML, Windows Forms, or Windows Presentation Foundation) for the given test control.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetPropertyValue When overridden in a derived class, sets the specified property of the given control with the provided value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace

Other Resources

Enable Coded UI Testing of Your Controls