AutomationIdentifier AutomationIdentifier AutomationIdentifier AutomationIdentifier Class

定义

用于标识 UI 自动化中的控件类型、事件、模式、属性和文本特性的类型的基类。Base class for types that identify control types, events, patterns, properties, and text attributes in UI Automation.

public ref class AutomationIdentifier : IComparable
public class AutomationIdentifier : IComparable
type AutomationIdentifier = class
    interface IComparable
Public Class AutomationIdentifier
Implements IComparable
继承
AutomationIdentifierAutomationIdentifierAutomationIdentifierAutomationIdentifier
派生
实现

注解

AutomationIdentifier实际上是抽象类,因为它没有构造函数,并且不能由应用程序实例化。The AutomationIdentifier class is effectively abstract, as it has no constructor and cannot be instantiated by applications.

属性

Id Id Id Id

获取基础数值标识符。Gets the underlying numerical identifier.

ProgrammaticName ProgrammaticName ProgrammaticName ProgrammaticName

获取注册的编程名称。Gets the registered programmatic name.

方法

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

将此 AutomationIdentifier 与其他 AutomationIdentifier 相比较。Compares this AutomationIdentifier with another AutomationIdentifier.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

返回一个值,该值指示提供的 AutomationIdentifier 是否等效于此 AutomationIdentifierReturns a value indicating whether the supplied AutomationIdentifier is equivalent to this AutomationIdentifier.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

返回此 UI 自动化UI Automation标识符的哈希代码。Returns the hash code for this UI 自动化UI Automation identifier.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于