共用方式為


SLCachedPropertyBag.AutomationId 屬性

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight (在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll 中)

語法

'宣告
Public Property AutomationId As String
    Get
    Set
public string AutomationId { get; set; }
public:
property String^ AutomationId {
    String^ get ();
    void set (String^ value);
}
member AutomationId : string with get, set
function get AutomationId () : String
function set AutomationId (value : String)

屬性值

型別:System.String
傳回 String

.NET Framework 安全性

請參閱

參考

SLCachedPropertyBag 類別

Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight 命名空間