ServerConnection.UserProfile-Eigenschaft

Ruft das der Verbindung, auf die verwiesen wird, zugeordnete Benutzerprofil ab.

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

Syntax

'Declaration
Public ReadOnly Property UserProfile As ServerUserProfiles 
    Get
'Usage
Dim instance As ServerConnection 
Dim value As ServerUserProfiles 

value = instance.UserProfile
public ServerUserProfiles UserProfile { get; }
public:
property ServerUserProfiles UserProfile {
    ServerUserProfiles get ();
}
member UserProfile : ServerUserProfiles
function get UserProfile () : ServerUserProfiles

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Common.ServerUserProfiles
Ein ServerUserProfiles-Objektwert, der das Benutzerprofil angibt, das der Verbindung zugeordnet ist, auf die verwiesen wird.

Beispiele

C#

ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.UserProfile.ToString());

PowerShell

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

Siehe auch

Verweis

ServerConnection Klasse

Microsoft.SqlServer.Management.Common-Namespace