Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the current logon record name used by the referenced connection.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public ReadOnly Property TrueLogin As String
Get
'Usage
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
Property Value
Type: System.String
A String value that specifies the current logon record name used by the referenced connection.
Examples
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.TrueLogin);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.TrueLogin