LaunchApplicationAction.RunAsAdmin 属性

 

获取或设置一个值,该值指示是否以管理员身份来启动该应用程序。

命名空间:   Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

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

属性值

Type: System.Boolean

如果以管理员身份启动,则为 true;否则为 false

备注

对于序列化,则改用 RunAsAdminWrapper 的值。

设置此属性将引发 PropertyChanged 事件。

请参阅

PropertyChanged
RunAsAdminWrapper
LaunchApplicationAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

返回页首