Share via


LaunchApplicationAction.RunAsAdmin Property

Gets or sets a value that indicates whether to launch the application as an admin.

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

Syntax

'Declaration
Public Property RunAsAdmin As Boolean
public bool RunAsAdmin { get; set; }
public:
property bool RunAsAdmin {
    bool get ();
    void set (bool value);
}
member RunAsAdmin : bool with get, set
function get RunAsAdmin () : boolean 
function set RunAsAdmin (value : boolean)

Property Value

Type: Boolean
true to launch as an admin; otherwise, false.

Remarks

For serialization, the value of the RunAsAdminWrapper is used instead.

Setting this property raises the PropertyChanged event.

.NET Framework Security

See Also

Reference

LaunchApplicationAction Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

PropertyChanged

RunAsAdminWrapper