Share via


ServerConnection.TrueLogin プロパティ

参照された接続で使用する現在のログオン レコード名を取得します。

名前空間:  Microsoft.SqlServer.Management.Common
アセンブリ:  Microsoft.SqlServer.ConnectionInfo (Microsoft.SqlServer.ConnectionInfo.dll)

構文

'宣言
Public ReadOnly Property TrueLogin As String 
    Get
'使用
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

プロパティ値

型: System.String
参照された接続で使用する現在のログオン レコード名を示す String 値です。

使用例

C#

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

PowerShell

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

関連項目

参照

ServerConnection クラス

Microsoft.SqlServer.Management.Common 名前空間