语言

ConnectionSettings.ConnectAsUserName 属性

定义

指定创建模拟连接时使用的Windows用户。 用户必须具有交互式登录权限。 异常:ConnectionCannotBeChangedException InvalidPropertyValueException PropertyNotSetException

public string ConnectAsUserName { get; set; }
member this.ConnectAsUserName : string with get, set
Public Property ConnectAsUserName As String

属性值

注解

支持两种用户名格式:“domain\user”和“user@domain”

适用于