Export (0) Print
Expand All

ServerConnection.UserProfile Property

Gets the user profile associated with the referenced connection.

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

public ServerUserProfiles UserProfile { get; }

Property Value

Type: Microsoft.SqlServer.Management.Common.ServerUserProfiles
A ServerUserProfiles object value that specifies the user profile associated with the referenced connection.

C#

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

PowerShell

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

Community Additions

ADD
Show:
© 2014 Microsoft