UIConnectionInfo.UserName 属性

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a String value that specifies the login name for the connection.

命名空间:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
程序集:  Microsoft.SqlServer.RegSvrEnum(在 Microsoft.SqlServer.RegSvrEnum.dll 中)

语法

声明
Public Overridable Property UserName As String 
    Get 
    Set
用法
Dim instance As UIConnectionInfo 
Dim value As String 

value = instance.UserName

instance.UserName = value
public virtual string UserName { get; set; }
public:
virtual property String^ UserName {
    String^ get ();
    void set (String^ value);
}
abstract UserName : string with get, set 
override UserName : string with get, set
function get UserName () : String 
function set UserName (value : String)

属性值

类型:System.String
A String value that specifies the login name for the connection.

请参阅

参考

UIConnectionInfo 类

Microsoft.SqlServer.Management.Smo.RegSvrEnum 命名空间