Compartir a través de


TrueLogin Propiedad

Gets the current logon record name used by the referenced connection.

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public ReadOnly Property TrueLogin As String
    Get
'Uso
Dim instance As ServerConnection
Dim value As String

value = instance.TrueLogin
public string TrueLogin { get; }
public:
property String^ TrueLogin {
    String^ get ();
}
member TrueLogin : string
function get TrueLogin () : String

Valor de la propiedad

Tipo: System. . :: . .String
A String value that specifies the current logon record name used by the referenced connection.

Ejemplos

C#

ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.TrueLogin);

PowerShell

$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.TrueLogin