Compartilhar via


Propriedade do RDL SqlOlapConnectionInfoBase.UserName

Obtém ou define o usuário que está se conectando com a instância do SQL Server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
<XmlIgnoreAttribute> _
Public Property UserName As String 
    Get 
    Set
'Uso
Dim instance As SqlOlapConnectionInfoBase 
Dim value As String 

value = instance.UserName

instance.UserName = value
[XmlIgnoreAttribute]
public string UserName { get; set; }
[XmlIgnoreAttribute]
public:
property String^ UserName {
    String^ get ();
    void set (String^ value);
}
[<XmlIgnoreAttribute>]
member UserName : string with get, set
function get UserName () : String 
function set UserName (value : String)

Valor da propriedade

Tipo: String
Um valor String que especifica o usuário que está se conectando com a instância do SQL Server.

Consulte também

Referência

SqlOlapConnectionInfoBase Classe

Namespace Microsoft.SqlServer.Management.Common